Package jmri.jmrit.logix
Enum ThrottleSetting.ValueType
- java.lang.Object
-
- java.lang.Enum<ThrottleSetting.ValueType>
-
- jmri.jmrit.logix.ThrottleSetting.ValueType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ThrottleSetting.ValueType>
- Enclosing class:
- ThrottleSetting
public static enum ThrottleSetting.ValueType extends java.lang.Enum<ThrottleSetting.ValueType>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
_bundleKey
(package private) int
_valueId
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIntId()
java.lang.String
toString()
static ThrottleSetting.ValueType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ThrottleSetting.ValueType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VAL_FLOAT
public static final ThrottleSetting.ValueType VAL_FLOAT
-
VAL_NOOP
public static final ThrottleSetting.ValueType VAL_NOOP
-
VAL_INT
public static final ThrottleSetting.ValueType VAL_INT
-
VAL_STEP
public static final ThrottleSetting.ValueType VAL_STEP
-
VAL_TEXT
public static final ThrottleSetting.ValueType VAL_TEXT
-
VAL_TRUE
public static final ThrottleSetting.ValueType VAL_TRUE
-
VAL_FALSE
public static final ThrottleSetting.ValueType VAL_FALSE
-
VAL_ON
public static final ThrottleSetting.ValueType VAL_ON
-
VAL_OFF
public static final ThrottleSetting.ValueType VAL_OFF
-
VAL_ACTIVE
public static final ThrottleSetting.ValueType VAL_ACTIVE
-
VAL_INACTIVE
public static final ThrottleSetting.ValueType VAL_INACTIVE
-
-
Field Detail
-
_valueId
int _valueId
-
_bundleKey
java.lang.String _bundleKey
-
-
Method Detail
-
values
public static ThrottleSetting.ValueType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ThrottleSetting.ValueType c : ThrottleSetting.ValueType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ThrottleSetting.ValueType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getIntId
public int getIntId()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<ThrottleSetting.ValueType>
-
-