Modifier and Type | Method and Description |
---|---|
int |
getIntValue()
Returns the type code for this AlertMode
|
static AlertMode |
getTypeForValue(int val)
Returns the AlertMode for the given type code.
|
static AlertMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AlertMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlertMode Off
public static final AlertMode Digital
public static final AlertMode Analog
public static AlertMode[] values()
for (AlertMode c : AlertMode.values()) System.out.println(c);
public static AlertMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getIntValue()
public static AlertMode getTypeForValue(int val)