接口 LambdaSafe.Filter<C,A>
- 类型参数:
C- the callback typeA- the primary argument type
- 所有已知实现类:
LambdaSafe.GenericTypeFilter
- 封闭类:
- LambdaSafe
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
A filter that can be used to restrict when a callback is used.
-
方法概要
修饰符和类型方法说明static <C,A> LambdaSafe.Filter<C, A> allowAll()Return aLambdaSafe.Filterthat allows all callbacks to be invoked.booleanDetermine if the given callback matches and should be invoked.
-
方法详细资料
-
match
Determine if the given callback matches and should be invoked.- 参数:
callbackType- the callback type (the functional interface)callbackInstance- the callback instance (the implementation)argument- the primary argumentadditionalArguments- any additional arguments- 返回:
- if the callback matches and should be invoked
-
allowAll
Return aLambdaSafe.Filterthat allows all callbacks to be invoked.- 类型参数:
C- the callback typeA- the primary argument type- 返回:
- an "allow all" filter
-