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 |
|---|
DIGITS
Tests code points against
Character.isDigit(int). |
LETTERS
Tests 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 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–2017 The Apache Software Foundation. All rights reserved.