public enum CharacterRange extends Enum<CharacterRange> implements Iterable<Character>
Enum Constant and Description |
---|
LowercaseAlphabetic
represents the lower-case alphabetical range a-z
|
Numeric
represents the 0-9 numeric range
|
UppercaseAlphabetic
represents the upper-case alphabetical range A-Z
|
Modifier and Type | Method and Description |
---|---|
char |
getFirstLetter() |
char |
getLastLetter() |
int |
getLength() |
Iterator<Character> |
iterator() |
static CharacterRange |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CharacterRange[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CharacterRange Numeric
public static final CharacterRange LowercaseAlphabetic
public static final CharacterRange UppercaseAlphabetic
public static CharacterRange[] values()
for (CharacterRange c : CharacterRange.values()) System.out.println(c);
public static CharacterRange 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 nullpublic char getFirstLetter()
firstLetter
public char getLastLetter()
lastLetter
public int getLength()
Copyright © 2004-2016. All Rights Reserved.