@FunctionalInterface
public interface BooleanPredicate
| Modifier and Type | Method and Description |
|---|---|
static BooleanPredicate |
alwaysFalse()
Creates a Always false function that may be useful if you don't need to process information or just want a default.
|
static BooleanPredicate |
alwaysTrue()
Creates a Always true function that may be useful if you don't need to process information or just want a default.
|
default BooleanPredicate |
andThen(BooleanPredicate after)
Returns a composed function that first applies this function to
its input, and then applies the
after function to the result. |
default BooleanPredicate |
andType(BooleanPredicate other)
A Type specific and-function helper function that reduces boxing/unboxing
|
default BooleanPredicate |
compose(BooleanPredicate before)
Returns a composed function that first applies the
before
function to its input, and then applies this function to the result. |
static BooleanPredicate |
identity()
Creates a Default function that returns the input provided.
|
default BooleanPredicate |
negate()
A type specific inverter function
|
default BooleanPredicate |
orType(BooleanPredicate other)
A Type specific or-function helper function that reduces boxing/unboxing
|
boolean |
test(boolean k)
Type Specific get function to reduce boxing/unboxing
|
boolean test(boolean k)
k - the value that should be processedstatic BooleanPredicate identity()
default BooleanPredicate compose(BooleanPredicate before)
before
function 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.before - the function that should be used firstdefault BooleanPredicate andThen(BooleanPredicate after)
after function to the result.
If evaluation of either function throws an exception, it is relayed to
the caller of the composed function.after - the function that should be used laststatic BooleanPredicate alwaysTrue()
static BooleanPredicate alwaysFalse()
default BooleanPredicate andType(BooleanPredicate other)
other - the other function that should be merged with.default BooleanPredicate negate()
default BooleanPredicate orType(BooleanPredicate other)
other - the other function that should be merged with.