Package jmri.jmrit.ctc.ctcserialdata
Enum CodeButtonHandlerData.TRAFFIC_DIRECTION
- java.lang.Object
-
- java.lang.Enum<CodeButtonHandlerData.TRAFFIC_DIRECTION>
-
- jmri.jmrit.ctc.ctcserialdata.CodeButtonHandlerData.TRAFFIC_DIRECTION
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CodeButtonHandlerData.TRAFFIC_DIRECTION>
- Enclosing class:
- CodeButtonHandlerData
public static enum CodeButtonHandlerData.TRAFFIC_DIRECTION extends java.lang.Enum<CodeButtonHandlerData.TRAFFIC_DIRECTION>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CodeButtonHandlerData.TRAFFIC_DIRECTION
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CodeButtonHandlerData.TRAFFIC_DIRECTION[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEFT
public static final CodeButtonHandlerData.TRAFFIC_DIRECTION LEFT
-
BOTH
public static final CodeButtonHandlerData.TRAFFIC_DIRECTION BOTH
-
RIGHT
public static final CodeButtonHandlerData.TRAFFIC_DIRECTION RIGHT
-
-
Method Detail
-
values
public static CodeButtonHandlerData.TRAFFIC_DIRECTION[] 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 (CodeButtonHandlerData.TRAFFIC_DIRECTION c : CodeButtonHandlerData.TRAFFIC_DIRECTION.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CodeButtonHandlerData.TRAFFIC_DIRECTION 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
-
-