Package org.springframework.boot.util
Interface LambdaSafe.Filter<C,A>
- Type Parameters:
C- the callback typeA- the primary argument type
- Enclosing class:
- LambdaSafe
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A filter that can be used to restrict when a callback is used.
- Since:
- 3.4.8
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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.
-
Method Details
-
match
Determine if the given callback matches and should be invoked.- Parameters:
callbackType- the callback type (the functional interface)callbackInstance- the callback instance (the implementation)argument- the primary argumentadditionalArguments- any additional arguments- Returns:
- if the callback matches and should be invoked
-
allowAll
Return aLambdaSafe.Filterthat allows all callbacks to be invoked.- Type Parameters:
C- the callback typeA- the primary argument type- Returns:
- an "allow all" filter
-