Package jmri.jmrix.loconet.lnsvf1
Enum Lnsv1MessageContents.Sv1Command
- java.lang.Object
-
- java.lang.Enum<Lnsv1MessageContents.Sv1Command>
-
- jmri.jmrix.loconet.lnsvf1.Lnsv1MessageContents.Sv1Command
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Lnsv1MessageContents.Sv1Command>
- Enclosing class:
- Lnsv1MessageContents
public static enum Lnsv1MessageContents.Sv1Command extends java.lang.Enum<Lnsv1MessageContents.Sv1Command>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
getCmd()
static int
getCmd(Lnsv1MessageContents.Sv1Command mt)
static Lnsv1MessageContents.Sv1Command
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Lnsv1MessageContents.Sv1Command[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SV1_WRITE
public static final Lnsv1MessageContents.Sv1Command SV1_WRITE
-
SV1_READ
public static final Lnsv1MessageContents.Sv1Command SV1_READ
-
-
Method Detail
-
values
public static Lnsv1MessageContents.Sv1Command[] 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 (Lnsv1MessageContents.Sv1Command c : Lnsv1MessageContents.Sv1Command.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Lnsv1MessageContents.Sv1Command 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
-
getCmd
int getCmd()
-
getCmd
public static int getCmd(Lnsv1MessageContents.Sv1Command mt)
-
-