Serializable, Comparable<CharacterPredicates>, CharacterPredicatepublic enum CharacterPredicates extends Enum<CharacterPredicates> implements CharacterPredicate
Commonly used implementations of CharacterPredicate. Per the interface
requirements, all implementations are thread safe.
| Enum Constant | Description |
|---|---|
ARABIC_NUMERALS |
Tests if the code points represents a number between 0 and 9.
|
ASCII_ALPHA_NUMERALS |
Tests if the code points represents a letter between a and Z or a number between 0 and 9.
|
ASCII_LETTERS |
Tests if the code points represents a letter between a and Z.
|
ASCII_LOWERCASE_LETTERS |
Tests if the code points represents a letter between a and z.
|
ASCII_UPPERCASE_LETTERS |
Tests if the code points represents a letter between A and Z.
|
DIGITS |
Tests code points against
Character.isDigit(int). |
LETTERS |
Tests code points against
Character.isLetter(int). |
| Modifier and Type | Method | Description |
|---|---|---|
static CharacterPredicates |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static CharacterPredicates[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
testpublic static final CharacterPredicates LETTERS
Character.isLetter(int).public static final CharacterPredicates DIGITS
Character.isDigit(int).public static final CharacterPredicates ARABIC_NUMERALS
public static final CharacterPredicates ASCII_LOWERCASE_LETTERS
public static final CharacterPredicates ASCII_UPPERCASE_LETTERS
public static final CharacterPredicates ASCII_LETTERS
public static final CharacterPredicates ASCII_ALPHA_NUMERALS
public static CharacterPredicates[] values()
for (CharacterPredicates c : CharacterPredicates.values()) System.out.println(c);
public static CharacterPredicates valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.