public enum PositionState extends Enum<PositionState>
Enum Constant and Description |
---|
GRASS |
MOWED_GRASS |
MOWER |
OUTBOUND |
Modifier and Type | Method and Description |
---|---|
int |
getStateNumber() |
static PositionState |
valueOf(int stateNumber)
find a state thanks to the state number.
|
static PositionState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PositionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PositionState GRASS
public static final PositionState MOWED_GRASS
public static final PositionState MOWER
public static final PositionState OUTBOUND
public static PositionState[] values()
for (PositionState c : PositionState.values()) System.out.println(c);
public static PositionState 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 static PositionState valueOf(int stateNumber)
stateNumber
- the state number to findpublic int getStateNumber()
Copyright © 2016. All Rights Reserved.