public enum FingerIndex extends java.lang.Enum<FingerIndex>
Enum Constant and Description |
---|
LEFT_INDEX |
LEFT_MIDDLE |
LEFT_PINKY |
LEFT_RING |
LEFT_THUMB |
RIGHT_INDEX |
RIGHT_MIDDLE |
RIGHT_PINKY |
RIGHT_RING |
RIGHT_THUMB |
Modifier and Type | Method and Description |
---|---|
int |
getIndex() |
static FingerIndex |
getValueByIndex(int index) |
static FingerIndex |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FingerIndex[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FingerIndex LEFT_PINKY
public static final FingerIndex LEFT_RING
public static final FingerIndex LEFT_MIDDLE
public static final FingerIndex LEFT_INDEX
public static final FingerIndex LEFT_THUMB
public static final FingerIndex RIGHT_THUMB
public static final FingerIndex RIGHT_INDEX
public static final FingerIndex RIGHT_MIDDLE
public static final FingerIndex RIGHT_RING
public static final FingerIndex RIGHT_PINKY
public static FingerIndex[] values()
for (FingerIndex c : FingerIndex.values()) System.out.println(c);
public static FingerIndex 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 int getIndex()
public static FingerIndex getValueByIndex(int index)
index
- Index (numeric) value of the desired finger