static enum EV3Key.KeyType extends java.lang.Enum<EV3Key.KeyType>
Enum Constant and Description |
---|
ALL |
DOWN |
ENTER |
ESCAPE |
LEFT |
RIGHT |
UP |
Modifier and Type | Field and Description |
---|---|
private byte |
bitMask |
private byte |
id |
private static java.util.Map<java.lang.Byte,EV3Key.KeyType> |
LOOKUP |
private java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
byte |
getBitMask() |
byte |
getId() |
java.lang.String |
getName() |
boolean |
isPressed() |
static EV3Key.KeyType |
of(int id) |
static EV3Key.KeyType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EV3Key.KeyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EV3Key.KeyType UP
public static final EV3Key.KeyType DOWN
public static final EV3Key.KeyType LEFT
public static final EV3Key.KeyType RIGHT
public static final EV3Key.KeyType ENTER
public static final EV3Key.KeyType ESCAPE
public static final EV3Key.KeyType ALL
private static final java.util.Map<java.lang.Byte,EV3Key.KeyType> LOOKUP
private final java.lang.String name
private final byte id
private final byte bitMask
public static EV3Key.KeyType[] values()
for (EV3Key.KeyType c : EV3Key.KeyType.values()) System.out.println(c);
public static EV3Key.KeyType 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 nullpublic static EV3Key.KeyType of(int id)
public java.lang.String getName()
public byte getId()
public byte getBitMask()
public boolean isPressed()