public enum StrokeType extends java.lang.Enum<StrokeType>
Enum Constant and Description |
---|
BACKHAND |
FOREHAND |
INVALID |
NO_EVENT |
OTHER |
SERVE |
SMASH |
Modifier and Type | Field and Description |
---|---|
protected short |
value |
Modifier and Type | Method and Description |
---|---|
static StrokeType |
getByValue(java.lang.Short value) |
static java.lang.String |
getStringFromValue(StrokeType value)
Retrieves the String Representation of the Value
|
short |
getValue() |
static StrokeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StrokeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StrokeType NO_EVENT
public static final StrokeType OTHER
public static final StrokeType SERVE
public static final StrokeType FOREHAND
public static final StrokeType BACKHAND
public static final StrokeType SMASH
public static final StrokeType INVALID
public static StrokeType[] values()
for (StrokeType c : StrokeType.values()) System.out.println(c);
public static StrokeType 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 StrokeType getByValue(java.lang.Short value)
public static java.lang.String getStringFromValue(StrokeType value)
value
- The enum constantpublic short getValue()