public class IntegerEnumValue extends AbstractBasicEnumValue<java.lang.Integer>
| Constructor and Description |
|---|
IntegerEnumValue(java.lang.String baseTag,
int 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.Integer |
getRealValue()
Get the real value which is used in this enum.
|
int |
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, getShortNamepublic IntegerEnumValue(java.lang.String baseTag,
int value)
baseTag - basic i18n tagvalue - the real valuepublic 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.Integer getRealValue()
public int getValue()
public double doubleValue()
double.
This may involve rounding.doubleValue in class java.lang.Numberdouble.public float floatValue()
float.
This may involve rounding.floatValue in class java.lang.Numberfloat.public int intValue()
int.
This may involve rounding or truncation.intValue in class java.lang.Numberint.public long longValue()
long.
This may involve rounding or truncation.longValue in class java.lang.Numberlong.