public enum CharacterPredicates extends Enum<CharacterPredicates> implements CharacterPredicate
 Commonly used implementations of CharacterPredicate. Per the interface
 requirements, all implementations are thread safe.
 
| Enum Constant and Description | 
|---|
| ARABIC_NUMERALSTests if the code points represents a number between 0 and 9. | 
| ASCII_ALPHA_NUMERALSTests if the code points represents a letter between a and Z or a number between 0 and 9. | 
| ASCII_LETTERSTests if the code points represents a letter between a and Z. | 
| ASCII_LOWERCASE_LETTERSTests if the code points represents a letter between a and z. | 
| ASCII_UPPERCASE_LETTERSTests if the code points represents a letter between A and Z. | 
| DIGITSTests code points against  Character.isDigit(int). | 
| LETTERSTests code points against  Character.isLetter(int). | 
| Modifier and Type | Method and 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. | 
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOftestpublic 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.