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