Interface BooleanPredicate
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a predicate of a boolean.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull BooleanPredicateand(BooleanPredicate other) default @NotNull BooleanPredicatenegate()default @NotNull BooleanPredicateor(BooleanPredicate other) booleantest(boolean input) Evaluates this predicate on the given boolean.default boolean
-
Method Details
-
test
-
test
boolean test(boolean input) Evaluates this predicate on the given boolean.- Parameters:
input- The input value- Returns:
trueif the input argument matches the predicate, otherwisefalse.
-
and
-
or
-
negate
-