Interface CharPredicate
- 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 one character.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull CharPredicateand(CharPredicate other) default @NotNull CharPredicatenegate()default @NotNull CharPredicateor(CharPredicate other) booleantest(char input) Evaluates this predicate on the given character.default boolean
-
Method Details
-
test
-
test
boolean test(char input) Evaluates this predicate on the given character.- Parameters:
input- The input value- Returns:
trueif the input argument matches the predicate, otherwisefalse.
-
and
-
or
-
negate
-