Interface CharPredicate
- All Superinterfaces:
IntPredicate
Interface for set of characters to use for inclusion exclusion tests
Can be used for code points since the argument is int
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicateDeprecated.static final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicateDeprecated.static final CharPredicatestatic final CharPredicateDeprecated.static final CharPredicatestatic final CharPredicatestatic final CharPredicatestatic final CharPredicate -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull CharPredicateand(@NotNull CharPredicate other) Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.static @NotNull CharPredicateanyOf(char... chars) static @NotNull CharPredicateanyOf(@NotNull CharSequence chars) static intindexOf(@NotNull CharSequence thizz, char c) static intindexOf(@NotNull CharSequence thizz, char c, int fromIndex, int endIndex) default @NotNull CharPredicatenegate()Returns a predicate that represents the logical negation of this predicate.default @NotNull CharPredicateor(@NotNull CharPredicate other) Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.static @NotNull CharPredicatestandardOrAnyOf(char c1) static @NotNull CharPredicatestandardOrAnyOf(char c1, char c2) static @NotNull CharPredicatestandardOrAnyOf(char c1, char c2, char c3) static @NotNull CharPredicatestandardOrAnyOf(char c1, char c2, char c3, char c4) default booleantest(char value) booleantest(int value) Methods inherited from interface IntPredicate
and, or
-
Field Details
-
NONE
-
ALL
-
SPACE
-
TAB
-
EOL
-
ANY_EOL
-
ANY_EOL_NUL
-
BACKSLASH
-
SLASH
-
LINE_SEP
-
HASH
-
SPACE_TAB
-
SPACE_TAB_NUL
-
SPACE_TAB_LINE_SEP
-
SPACE_TAB_NBSP_LINE_SEP
-
SPACE_EOL
-
SPACE_ANY_EOL
-
SPACE_TAB_NBSP
-
SPACE_TAB_EOL
-
SPACE_TAB_NBSP_EOL
-
WHITESPACE
-
WHITESPACE_OR_NUL
-
WHITESPACE_NBSP
-
WHITESPACE_NBSP_OR_NUL
-
BLANKSPACE
-
HEXADECIMAL_DIGITS
-
DECIMAL_DIGITS
-
OCTAL_DIGITS
-
BINARY_DIGITS
-
FALSE
Deprecated. -
TRUE
Deprecated. -
SPACE_TAB_OR_NUL
Deprecated.
-
-
Method Details
-
test
boolean test(int value) - Specified by:
testin interfaceIntPredicate
-
test
default boolean test(char value) -
and
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another. When evaluating the composed predicate, if this predicate isfalse, then theotherpredicate is not evaluated.Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this predicate throws an exception, the
otherpredicate will not be evaluated.- Parameters:
other- a predicate that will be logically-ANDed with this predicate- Returns:
- a composed predicate that represents the short-circuiting logical
AND of this predicate and the
otherpredicate - Throws:
NullPointerException- if other is null
-
negate
Returns a predicate that represents the logical negation of this predicate.- Specified by:
negatein interfaceIntPredicate- Returns:
- a predicate that represents the logical negation of this predicate
-
or
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another. When evaluating the composed predicate, if this predicate istrue, then theotherpredicate is not evaluated.Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this predicate throws an exception, the
otherpredicate will not be evaluated.- Parameters:
other- a predicate that will be logically-ORed with this predicate- Returns:
- a composed predicate that represents the short-circuiting logical
OR of this predicate and the
otherpredicate - Throws:
NullPointerException- if other is null
-
standardOrAnyOf
-
standardOrAnyOf
-
standardOrAnyOf
-
standardOrAnyOf
-
anyOf
-
indexOf
-
indexOf
-
anyOf
-