public enum ShortNameType extends java.lang.Enum<ShortNameType>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
static java.lang.String |
shorten(java.lang.String name,
ShortNameType type) |
static ShortNameType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ShortNameType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShortNameType INITIALS
public static final ShortNameType LASTNAME
public static final ShortNameType FIRSTNAME
public static final ShortNameType NONE
public static ShortNameType[] values()
for (ShortNameType c : ShortNameType.values()) System.out.println(c);
public static ShortNameType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDescription()
public static java.lang.String shorten(java.lang.String name, ShortNameType type)