public enum PassiveType extends java.lang.Enum<PassiveType>
Modifier and Type | Method and Description |
---|---|
static PassiveType |
fromName(java.lang.String typeName)
Converts type name to passive type enumeration
|
static PassiveType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PassiveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PassiveType ALWEYSON
public static final PassiveType SWITCH
public static PassiveType[] values()
for (PassiveType c : PassiveType.values()) System.out.println(c);
public static PassiveType 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 static PassiveType fromName(java.lang.String typeName)
typeName
- String with desired type name('alwaysOn' or 'switch')