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