Package com.vladsch.flexmark.util.misc
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 CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
Deprecated.static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
Deprecated.static final CharPredicate
static final CharPredicate
Deprecated.static final CharPredicate
static final CharPredicate
static final CharPredicate
static final CharPredicate
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull CharPredicate
and
(@NotNull CharPredicate other) Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.static @NotNull CharPredicate
anyOf
(char... chars) static @NotNull CharPredicate
anyOf
(@NotNull CharSequence chars) static int
indexOf
(@NotNull CharSequence thizz, char c) static int
indexOf
(@NotNull CharSequence thizz, char c, int fromIndex, int endIndex) default @NotNull CharPredicate
negate()
Returns a predicate that represents the logical negation of this predicate.default @NotNull CharPredicate
or
(@NotNull CharPredicate other) Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.static @NotNull CharPredicate
standardOrAnyOf
(char c1) static @NotNull CharPredicate
standardOrAnyOf
(char c1, char c2) static @NotNull CharPredicate
standardOrAnyOf
(char c1, char c2, char c3) static @NotNull CharPredicate
standardOrAnyOf
(char c1, char c2, char c3, char c4) default boolean
test
(char value) boolean
test
(int value) Methods inherited from interface java.util.function.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:
test
in 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 theother
predicate 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
other
predicate 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
other
predicate - Throws:
NullPointerException
- if other is null
-
negate
Returns a predicate that represents the logical negation of this predicate.- Specified by:
negate
in 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 theother
predicate 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
other
predicate 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
other
predicate - Throws:
NullPointerException
- if other is null
-
standardOrAnyOf
-
standardOrAnyOf
-
standardOrAnyOf
-
standardOrAnyOf
-
anyOf
-
indexOf
-
indexOf
-
anyOf
-