Package org.springframework.boot.util
Class LambdaSafe.Callbacks<C, A>
java.lang.Object
org.springframework.boot.util.LambdaSafe.LambdaSafeCallback<C, A, LambdaSafe.Callbacks<C, A>>
org.springframework.boot.util.LambdaSafe.Callbacks<C, A>
- Type Parameters:
C
- the callback typeA
- the primary argument type
- Enclosing class:
- LambdaSafe
public static final class LambdaSafe.Callbacks<C, A>
extends LambdaSafe.LambdaSafeCallback<C, A, LambdaSafe.Callbacks<C, A>>
Represents a collection of callbacks that can be invoked in a lambda safe way.
-
Method Summary
Methods inherited from class org.springframework.boot.util.LambdaSafe.LambdaSafeCallback
invoke, withLogger, withLogger
-
Method Details
-
invoke
Invoke the callback instances where the callback method returns void.- Parameters:
invoker
- the invoker used to invoke the callback
-
invokeAnd
Invoke the callback instances where the callback method returns a result.- Type Parameters:
R
- the result type- Parameters:
invoker
- the invoker used to invoke the callback- Returns:
- the results of the invocation (may be an empty stream if no callbacks could be called)
-