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