public static enum MechanicalSwitch.Register extends java.lang.Enum<MechanicalSwitch.Register> implements Register
Enum Constant and Description |
---|
SWITCH_STATE
Reads the state of the button
|
Modifier and Type | Method and Description |
---|---|
Module |
module()
Get the module the register belongs to
|
static MechanicalSwitch.Register |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MechanicalSwitch.Register[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
notifyCallbacks, opcode
public static final MechanicalSwitch.Register SWITCH_STATE
public static MechanicalSwitch.Register[] values()
for (MechanicalSwitch.Register c : MechanicalSwitch.Register.values()) System.out.println(c);
public static MechanicalSwitch.Register 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 null