public class EnumEnumValue<E extends java.lang.Enum<E>> extends AbstractBasicEnumValue<java.lang.Enum<E>>
Constructor and Description |
---|
EnumEnumValue(java.lang.String baseTag,
java.lang.Enum<E> value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
doubleValue()
Returns the value of the specified number as a
double . |
float |
floatValue()
Returns the value of the specified number as a
float . |
java.lang.Enum<E> |
getRealValue()
Get the real value which is used in this enum.
|
java.lang.Enum<E> |
getValue()
Get the integer value.
|
int |
intValue()
Returns the value of the specified number as an
int . |
boolean |
isEqualTo(java.util.prefs.Preferences preferences,
java.lang.String key)
Is this value equal to the value which is stored in the preferences under the given key?
|
long |
longValue()
Returns the value of the specified number as a
long . |
void |
storeTo(java.util.prefs.Preferences preferences,
java.lang.String key)
Store this value to the preferences under the given key.
|
getBasicValue, getIcon, getLongName, getShortName
public void storeTo(@NotNull java.util.prefs.Preferences preferences, @NotNull java.lang.String key)
preferences
- preferences to store tokey
- key under which to storepublic boolean isEqualTo(@NotNull java.util.prefs.Preferences preferences, @NotNull java.lang.String key)
preferences
- preferences where a enum value is storedkey
- key under which the enum value is storedtrue
if the enum value is equal to the one stored in the preferences,
false
otherwisepublic java.lang.Enum<E> getRealValue()
public java.lang.Enum<E> getValue()
public double doubleValue()
double
.
This may involve rounding.doubleValue
in class java.lang.Number
double
.public float floatValue()
float
.
This may involve rounding.floatValue
in class java.lang.Number
float
.public int intValue()
int
.
This may involve rounding or truncation.intValue
in class java.lang.Number
int
.public long longValue()
long
.
This may involve rounding or truncation.longValue
in class java.lang.Number
long
.