public static enum Person.Title extends Enum<Person.Title>
Modifier and Type | Method and Description |
---|---|
static Person.Title |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Person.Title[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Person.Title MR
public static final Person.Title MS
public static final Person.Title MRS
public static final Person.Title DR
public static Person.Title[] values()
for (Person.Title c : Person.Title.values()) System.out.println(c);
public static Person.Title 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