public final class EnumImpl<E extends Enum.EnumKey> extends Object implements Enum<E>
Enum.EnumKey, Enum.Field| Constructor and Description |
|---|
EnumImpl(E value)
Constructs a Enum object.
|
EnumImpl(E value,
String displayValue)
Constructs a Enum object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayValue()
Gets the value of this Enum.
|
E |
getValue()
Gets the key for this Enum.
|
void |
setDisplayValue(String displayValue)
Sets the value of this Enum.
|
void |
setValue(E value)
Sets the key for this Enum.
|
public EnumImpl(E value, String displayValue)
value - EnumKey The key to usedisplayValue - String The display valuepublic EnumImpl(E value)
value - The key to use. Will use the value from getDisplayValue() as
the display value.public String getDisplayValue()
EnumgetDisplayValue in interface Enum<E extends Enum.EnumKey>public void setDisplayValue(String displayValue)
EnumsetDisplayValue in interface Enum<E extends Enum.EnumKey>displayValue - The value to set.public E getValue()
EnumgetValue in interface Enum<E extends Enum.EnumKey>Copyright © 2007-2012. All Rights Reserved.