public static enum Character.AgeCategory extends Enum<Character.AgeCategory>
Enum Constant and Description |
---|
Child |
Mature |
MiddleAged |
Old |
Venerable |
YoungAdult |
Modifier and Type | Method and Description |
---|---|
static Character.AgeCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Character.AgeCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Character.AgeCategory Child
public static final Character.AgeCategory YoungAdult
public static final Character.AgeCategory Mature
public static final Character.AgeCategory MiddleAged
public static final Character.AgeCategory Old
public static final Character.AgeCategory Venerable
public static Character.AgeCategory[] values()
for (Character.AgeCategory c : Character.AgeCategory.values()) System.out.println(c);
public static Character.AgeCategory 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 null