public enum SwitchSensorEvent extends Enum<SwitchSensorEvent>
| Enum Constant and Description |
|---|
NO_CONDITION_DETECTED |
SWITCH_OFF |
SWITCH_ON |
| Modifier and Type | Method and Description |
|---|---|
static SwitchSensorEvent |
getSwitchSensorEvent(int val)
convert int to enum item
|
static SwitchSensorEvent |
toSwitchSensorEvent(String str)
convert String to enum item
|
int |
value() |
static SwitchSensorEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SwitchSensorEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SwitchSensorEvent SWITCH_ON
public static final SwitchSensorEvent SWITCH_OFF
public static final SwitchSensorEvent NO_CONDITION_DETECTED
public static SwitchSensorEvent[] values()
for (SwitchSensorEvent c : SwitchSensorEvent.values()) System.out.println(c);
public static SwitchSensorEvent valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int value()
public static SwitchSensorEvent toSwitchSensorEvent(String str)
str - public static SwitchSensorEvent getSwitchSensorEvent(int val)
int - Copyright © 2018 universAAL Consortium. All rights reserved.