类 LambdaSafe.Callbacks<C,A>
java.lang.Object
cn.taketoday.util.LambdaSafe.LambdaSafeCallback<C,A,LambdaSafe.Callbacks<C,A>>
cn.taketoday.util.LambdaSafe.Callbacks<C,A>
- 类型参数:
C- the callback typeA- the primary argument type
- 封闭类:
- 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.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
从类继承的方法 cn.taketoday.util.LambdaSafe.LambdaSafeCallback
invoke, withFilter, withLogger, withLogger
-
字段详细资料
-
callbackInstances
-
-
构造器详细资料
-
Callbacks
-
-
方法详细资料
-
invoke
Invoke the callback instances where the callback method returns void.- 参数:
invoker- the invoker used to invoke the callback
-
invokeAnd
Invoke the callback instances where the callback method returns a result.- 类型参数:
R- the result type- 参数:
invoker- the invoker used to invoke the callback- 返回:
- the results of the invocation (may be an empty stream if no callbacks could be called)
-