Package org.dellroad.stuff.java
Interface Predicate
- All Superinterfaces:
BooleanSupplier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A boolean predicate.
-
Method Details
-
test
boolean test()Determine if the predicate is true.- Returns:
- true if predicate is true, otherwise false
-
getAsBoolean
default boolean getAsBoolean()Returnsthis.
test()
.- Specified by:
getAsBoolean
in interfaceBooleanSupplier
- Returns:
- result of test
-