Concepts
from()
from()
The from()
method initializes the pipeline. The argument passed to this method becomes the input for the next perform()
call in the chain.
perform()
perform()
The perform()
method is used to chain actions. It has two overloads:
Without Exception Handling: Accepts a single callable action that returns a result.
With Exception Handling: Accepts a callable action and an exception handler. The exception handler is a function that takes a
Throwable
and returns a fallback value or throws a newRuntimeException
.
get()
get()
The get()
method terminates the pipeline and returns the final value produced by the last perform()
call.
Last updated