Modul speiger.src.collections
Schnittstelle BooleanPredicate
- Funktionsschnittstelle:
- Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.
A Type Specific Function interface that reduces boxing/unboxing and fills the gaps of interfaces that are missing.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic BooleanPredicateCreates a Always false function that may be useful if you don't need to process information or just want a default.static BooleanPredicateCreates a Always true function that may be useful if you don't need to process information or just want a default.default BooleanPredicateandThen(BooleanPredicate after) Returns a composed function that first applies this function to its input, and then applies theafterfunction to the result.default BooleanPredicateandType(BooleanPredicate other) A Type specific and-function helper function that reduces boxing/unboxingdefault BooleanPredicatecompose(BooleanPredicate before) Returns a composed function that first applies thebeforefunction to its input, and then applies this function to the result.static BooleanPredicateidentity()Creates a Default function that returns the input provided.default BooleanPredicatenegate()A type specific inverter functiondefault BooleanPredicateorType(BooleanPredicate other) A Type specific or-function helper function that reduces boxing/unboxingbooleantest(boolean k) Type Specific get function to reduce boxing/unboxing
-
Methodendetails
-
test
boolean test(boolean k) Type Specific get function to reduce boxing/unboxing- Parameter:
k- the value that should be processed- Gibt zurück:
- the result of the function
-
identity
Creates a Default function that returns the input provided.- Gibt zurück:
- a input returning function
-
compose
Returns a composed function that first applies thebeforefunction to its input, and then applies this function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the composed function.- Parameter:
before- the function that should be used first- Gibt zurück:
- a composed function with a different starting function.
-
andThen
Returns a composed function that first applies this function to its input, and then applies theafterfunction to the result. If evaluation of either function throws an exception, it is relayed to the caller of the composed function.- Parameter:
after- the function that should be used last- Gibt zurück:
- a composed function with a different starting function.
-
alwaysTrue
Creates a Always true function that may be useful if you don't need to process information or just want a default.- Gibt zurück:
- a default returning function
-
alwaysFalse
Creates a Always false function that may be useful if you don't need to process information or just want a default.- Gibt zurück:
- a default returning function
-
andType
A Type specific and-function helper function that reduces boxing/unboxing- Parameter:
other- the other function that should be merged with.- Gibt zurück:
- a function that compares values in a and comparason
-
negate
A type specific inverter function- Gibt zurück:
- the same function but inverts the result
-
orType
A Type specific or-function helper function that reduces boxing/unboxing- Parameter:
other- the other function that should be merged with.- Gibt zurück:
- a function that compares values in a or comparason
-