Top Description Fields Constructors Methods
org.apache.commons.text

public sealed Enum CharacterPredicates

extends Enum<CharacterPredicates>
implements CharacterPredicate
Class Inheritance
All Implemented Interfaces
org.apache.commons.text.CharacterPredicate

Commonly used implementations of CharacterPredicate. Per the interface requirements, all implementations are thread safe.
Since
1.0

Field Summary

Modifier and TypeField and Description
public static final CharacterPredicates
ARABIC_NUMERALS

Tests if the code points represents a number between 0 and 9.

public static final CharacterPredicates
ASCII_ALPHA_NUMERALS

Tests if the code points represents a letter between a and Z or a number between 0 and 9.

public static final CharacterPredicates
ASCII_LETTERS

Tests if the code points represents a letter between a and Z.

public static final CharacterPredicates
ASCII_LOWERCASE_LETTERS

Tests if the code points represents a letter between a and z.

public static final CharacterPredicates
ASCII_UPPERCASE_LETTERS

Tests if the code points represents a letter between A and Z.

public static final CharacterPredicates
DIGITS

Tests code points against Character#isDigit(int).

public static final CharacterPredicates
LETTERS

Tests code points against Character#isLetter(int).

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static CharacterPredicates
public static CharacterPredicates[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ARABIC_NUMERALSback to summary
public static final CharacterPredicates ARABIC_NUMERALS

Tests if the code points represents a number between 0 and 9.

Since
1.2
ASCII_ALPHA_NUMERALSback to summary
public static final CharacterPredicates ASCII_ALPHA_NUMERALS

Tests if the code points represents a letter between a and Z or a number between 0 and 9.

Since
1.2
ASCII_LETTERSback to summary
public static final CharacterPredicates ASCII_LETTERS

Tests if the code points represents a letter between a and Z.

Since
1.2
ASCII_LOWERCASE_LETTERSback to summary
public static final CharacterPredicates ASCII_LOWERCASE_LETTERS

Tests if the code points represents a letter between a and z.

Since
1.2
ASCII_UPPERCASE_LETTERSback to summary
public static final CharacterPredicates ASCII_UPPERCASE_LETTERS

Tests if the code points represents a letter between A and Z.

Since
1.2
DIGITSback to summary
public static final CharacterPredicates DIGITS

Tests code points against Character#isDigit(int).

Since
1.0
LETTERSback to summary
public static final CharacterPredicates LETTERS

Tests code points against Character#isLetter(int).

Since
1.0

Constructor Detail

CharacterPredicatesback to summary
private CharacterPredicates()

Method Detail

valueOfback to summary
public static CharacterPredicates valueOf(String name)
valuesback to summary
public static CharacterPredicates[] values()