public abstract static class Enum.Type extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
protected |
Enum.Type(String name,
Enum[] enums) |
Modifier and Type | Method and Description |
---|---|
Enum |
getDefault() |
Enum |
getEnum(int enumElt)
Returns name of enumerated value
|
Enum |
getEnum(String enumName)
Returns enumerated value of name
|
Enum |
getEnum(String enumName,
Enum dephault)
Returns enumerated value of name
For large sets of enumerated values, a HashMap could
be used to retrieve.
|
String[] |
getEnumNames()
Returns array of names for enumerated values
|
String |
getName() |
boolean |
isValid(String enumName) |
void |
setDefault(Enum dephault) |
int |
size() |
public void setDefault(Enum dephault)
public Enum getDefault()
public final String getName()
public final boolean isValid(String enumName)
public final int size()
public final String[] getEnumNames()
public final Enum getEnum(int enumElt)
Copyright © The Apache Software Foundation. All Rights Reserved.