Top Description Fields Methods
com.vladsch.flexmark.util.misc

public Interface CharPredicate

extends IntPredicate
Imports
org.jetbrains.annotations.NotNull, java.util.BitSet, .Objects, java.util.function.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

Modifier and TypeField and Description
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
FALSE

Deprecated
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
SPACE_TAB_OR_NUL

Deprecated
public static final CharPredicate
public static final CharPredicate
TRUE

Deprecated
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate
public static final CharPredicate

Method Summary

Modifier and TypeMethod and Description
public default @NotNull CharPredicate

Returns:

a composed predicate that represents the short-circuiting logical AND of this predicate and the other predicate
and
(@NotNull CharPredicate
a predicate that will be logically-ANDed with this predicate
other
)

Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.

public static @NotNull CharPredicate
anyOf(char... chars)

public static @NotNull CharPredicate
public static int
indexOf(@NotNull CharSequence thizz, char c)

public static int
indexOf(@NotNull CharSequence thizz, char c, int fromIndex, int endIndex)

public default @NotNull CharPredicate

Returns:

a predicate that represents the logical negation of this predicate
negate
()

Overrides default java.util.function.IntPredicate.negate.

Returns a predicate that represents the logical negation of this predicate.

public default @NotNull CharPredicate

Returns:

a composed predicate that represents the short-circuiting logical OR of this predicate and the other predicate
or
(@NotNull CharPredicate
a predicate that will be logically-ORed with this predicate
other
)

Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.

public static @NotNull CharPredicate
standardOrAnyOf(char c1)

public static @NotNull CharPredicate
standardOrAnyOf(char c1, char c2)

public static @NotNull CharPredicate
standardOrAnyOf(char c1, char c2, char c3)

public static @NotNull CharPredicate
standardOrAnyOf(char c1, char c2, char c3, char c4)

public boolean
test(int
the input argument
value
)

Redeclares java.util.function.IntPredicate.test.

Evaluates this predicate on the given argument.

public default boolean
test(char value)

Inherited from java.util.function.IntPredicate:
andor

Field Detail

ALLback to summary
public static final CharPredicate ALL
ANY_EOLback to summary
public static final CharPredicate ANY_EOL
ANY_EOL_NULback to summary
public static final CharPredicate ANY_EOL_NUL
BACKSLASHback to summary
public static final CharPredicate BACKSLASH
BINARY_DIGITSback to summary
public static final CharPredicate BINARY_DIGITS
BLANKSPACEback to summary
public static final CharPredicate BLANKSPACE
DECIMAL_DIGITSback to summary
public static final CharPredicate DECIMAL_DIGITS
EOLback to summary
public static final CharPredicate EOL
FALSEback to summary
public static final CharPredicate FALSE

Deprecated

Annotations
@Deprecated
HASHback to summary
public static final CharPredicate HASH
HEXADECIMAL_DIGITSback to summary
public static final CharPredicate HEXADECIMAL_DIGITS
LINE_SEPback to summary
public static final CharPredicate LINE_SEP
NONEback to summary
public static final CharPredicate NONE
OCTAL_DIGITSback to summary
public static final CharPredicate OCTAL_DIGITS
SLASHback to summary
public static final CharPredicate SLASH
SPACEback to summary
public static final CharPredicate SPACE
SPACE_ANY_EOLback to summary
public static final CharPredicate SPACE_ANY_EOL
SPACE_EOLback to summary
public static final CharPredicate SPACE_EOL
SPACE_TABback to summary
public static final CharPredicate SPACE_TAB
SPACE_TAB_EOLback to summary
public static final CharPredicate SPACE_TAB_EOL
SPACE_TAB_LINE_SEPback to summary
public static final CharPredicate SPACE_TAB_LINE_SEP
SPACE_TAB_NBSPback to summary
public static final CharPredicate SPACE_TAB_NBSP
SPACE_TAB_NBSP_EOLback to summary
public static final CharPredicate SPACE_TAB_NBSP_EOL
SPACE_TAB_NBSP_LINE_SEPback to summary
public static final CharPredicate SPACE_TAB_NBSP_LINE_SEP
SPACE_TAB_NULback to summary
public static final CharPredicate SPACE_TAB_NUL
SPACE_TAB_OR_NULback to summary
public static final CharPredicate SPACE_TAB_OR_NUL

Deprecated

Annotations
@Deprecated
TABback to summary
public static final CharPredicate TAB
TRUEback to summary
public static final CharPredicate TRUE

Deprecated

Annotations
@Deprecated
WHITESPACEback to summary
public static final CharPredicate WHITESPACE
WHITESPACE_NBSPback to summary
public static final CharPredicate WHITESPACE_NBSP
WHITESPACE_NBSP_OR_NULback to summary
public static final CharPredicate WHITESPACE_NBSP_OR_NUL
WHITESPACE_OR_NULback to summary
public static final CharPredicate WHITESPACE_OR_NUL

Method Detail

andback to summary
public default @NotNull CharPredicate and(@NotNull CharPredicate other)

Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another. When evaluating the composed predicate, if this predicate is false, then the other 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:@NotNull CharPredicate

a predicate that will be logically-ANDed with this predicate

Returns:@NotNull CharPredicate

a composed predicate that represents the short-circuiting logical AND of this predicate and the other predicate

Annotations
@NotNull
Exceptions
NullPointerException:
if other is null
anyOfback to summary
public static @NotNull CharPredicate anyOf(char... chars)
Annotations
@NotNull
anyOfback to summary
public static @NotNull CharPredicate anyOf(@NotNull CharSequence chars)
Annotations
@NotNull
indexOfback to summary
public static int indexOf(@NotNull CharSequence thizz, char c)
indexOfback to summary
public static int indexOf(@NotNull CharSequence thizz, char c, int fromIndex, int endIndex)
negateback to summary
public default @NotNull CharPredicate negate()

Overrides default java.util.function.IntPredicate.negate.

Returns a predicate that represents the logical negation of this predicate.

Returns:@NotNull CharPredicate

a predicate that represents the logical negation of this predicate

Annotations
@NotNull
orback to summary
public default @NotNull CharPredicate or(@NotNull CharPredicate other)

Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another. When evaluating the composed predicate, if this predicate is true, then the other 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:@NotNull CharPredicate

a predicate that will be logically-ORed with this predicate

Returns:@NotNull CharPredicate

a composed predicate that represents the short-circuiting logical OR of this predicate and the other predicate

Annotations
@NotNull
Exceptions
NullPointerException:
if other is null
standardOrAnyOfback to summary
public static @NotNull CharPredicate standardOrAnyOf(char c1)
Annotations
@NotNull
standardOrAnyOfback to summary
public static @NotNull CharPredicate standardOrAnyOf(char c1, char c2)
Annotations
@NotNull
standardOrAnyOfback to summary
public static @NotNull CharPredicate standardOrAnyOf(char c1, char c2, char c3)
Annotations
@NotNull
standardOrAnyOfback to summary
public static @NotNull CharPredicate standardOrAnyOf(char c1, char c2, char c3, char c4)
Annotations
@NotNull
testback to summary
public boolean test(int value)

Redeclares java.util.function.IntPredicate.test.

Doc from java.util.function.IntPredicate.test.

Evaluates this predicate on the given argument.

Parameters
value:int

the input argument

Returns:boolean

true if the input argument matches the predicate, otherwise false

Annotations
@Override
testback to summary
public default boolean test(char value)