@FunctionalInterface
public interface CharPredicate
extends java.util.function.Predicate<java.lang.Character>, java.util.function.IntPredicate
Predicate; provides methods to test a primitive type both as object
and as primitive.
Except for the boolean case, this interface extends both a parameterized Predicate
and a type-specific JDK predicate (e.g., IntPredicate). For types missing
a type-specific JDK predicate (e.g., short or float), we extend the predicate associated with
the smallest primitive type that can represent the current type (e.g., int or double, respectively).
Predicate| Modifier and Type | Method and Description |
|---|---|
default CharPredicate |
and(CharPredicate other)
Returns a composed type-specific predicate that represents a short-circuiting logical
AND of this type-specific predicate and another.
|
default CharPredicate |
and(java.util.function.IntPredicate other) |
default java.util.function.Predicate<java.lang.Character> |
and(java.util.function.Predicate<? super java.lang.Character> other)
Deprecated.
Please use the corresponding type-specific method instead.
|
default CharPredicate |
negate() |
default CharPredicate |
or(CharPredicate other)
Returns a composed type-specific predicate that represents a short-circuiting logical
OR of this type-specific predicate and another.
|
default CharPredicate |
or(java.util.function.IntPredicate other) |
default java.util.function.Predicate<java.lang.Character> |
or(java.util.function.Predicate<? super java.lang.Character> other)
Deprecated.
Please use the corresponding type-specific method instead.
|
boolean |
test(char t)
Evaluates this predicate on the given input.
|
default boolean |
test(java.lang.Character t)
Deprecated.
Please use the corresponding type-specific method instead.
|
default boolean |
test(int t)
Deprecated.
Please use the corresponding type-specific method instead.
|
boolean test(char t)
t - the input.true if the input matches the predicate,
otherwise false@Deprecated default boolean test(int t)
test in interface java.util.function.IntPredicate@Deprecated default boolean test(java.lang.Character t)
test in interface java.util.function.Predicate<java.lang.Character>default CharPredicate and(CharPredicate other)
other - a predicate that will be logically-ANDed with this predicate.other predicate.Predicate.and(java.util.function.Predicate<? super T>)default CharPredicate and(java.util.function.IntPredicate other)
and in interface java.util.function.IntPredicate@Deprecated default java.util.function.Predicate<java.lang.Character> and(java.util.function.Predicate<? super java.lang.Character> other)
and in interface java.util.function.Predicate<java.lang.Character>default CharPredicate negate()
negate in interface java.util.function.IntPredicatenegate in interface java.util.function.Predicate<java.lang.Character>default CharPredicate or(CharPredicate other)
other - a predicate that will be logically-ORed with this predicate.other predicate.Predicate.or(java.util.function.Predicate<? super T>)default CharPredicate or(java.util.function.IntPredicate other)
or in interface java.util.function.IntPredicate@Deprecated default java.util.function.Predicate<java.lang.Character> or(java.util.function.Predicate<? super java.lang.Character> other)
or in interface java.util.function.Predicate<java.lang.Character>