Package com.comphenix.bitspeak.function
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.
@FunctionalInterface public interface CharPredicate
Represents a char-specialization ofPredicate
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CharPredicate
and(CharPredicate other)
Compose the current predicate and the given predicate using the logical AND operator.default CharPredicate
negate()
Returns a predicate that represents the logical negation of this predicate.default CharPredicate
or(CharPredicate other)
Compose the current predicate and the given predicate using the logical OR operator.boolean
test(char value)
Evaluate this predicate on the given argument-
-
-
-
Method Detail
-
and
default CharPredicate and(CharPredicate other)
Compose the current predicate and the given predicate using the logical AND operator.- Parameters:
other
- the other predicate.- Returns:
- The composed predicate.
-
or
default CharPredicate or(CharPredicate other)
Compose the current predicate and the given predicate using the logical OR operator.- Parameters:
other
- the other predicate.- Returns:
- The composed predicate.
-
negate
default CharPredicate negate()
Returns a predicate that represents the logical negation of this predicate.- Returns:
- The logical negation of this predicate.
-
test
boolean test(char value)
Evaluate this predicate on the given argument-- Parameters:
value
- the argument.- Returns:
- TRUE if the input matches the predicate, FALSE otherwise.
-
-