public enum UsageSensorEvent extends Enum<UsageSensorEvent>
Enum Constant and Description |
---|
ABSENCE_VIOLATION |
EXPECTED_USE_START_VIOLATION |
EXPECTED_USE_STOP_VIOLATION |
NO_CONDITION_DETECTED |
USAGE_ENDED |
USAGE_STARTED |
Modifier and Type | Method and Description |
---|---|
static UsageSensorEvent |
getUsageSensorEvent(int val)
convert int to enum item
|
static UsageSensorEvent |
toUsageSensorEvent(String str)
convert String to enum item
|
int |
value() |
static UsageSensorEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UsageSensorEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UsageSensorEvent USAGE_STARTED
public static final UsageSensorEvent USAGE_ENDED
public static final UsageSensorEvent EXPECTED_USE_START_VIOLATION
public static final UsageSensorEvent EXPECTED_USE_STOP_VIOLATION
public static final UsageSensorEvent ABSENCE_VIOLATION
public static final UsageSensorEvent NO_CONDITION_DETECTED
public static UsageSensorEvent[] values()
for (UsageSensorEvent c : UsageSensorEvent.values()) System.out.println(c);
public static UsageSensorEvent 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 UsageSensorEvent toUsageSensorEvent(String str)
str
- public static UsageSensorEvent getUsageSensorEvent(int val)
int
- Copyright © 2018 universAAL Consortium. All rights reserved.