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