|
||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||
java.lang.Objectjava.lang.Enum<Room.Result>
Room.Result
public static enum Room.Result
An enumeration of the various possible outcomes of a Vroomba cleaning a room.
| Enum Constant Summary | |
|---|---|
DROP
Vroomba fell over a DROP |
|
INOPERATIVE
Room has more than one floor space, but Vroomba never moved at all |
|
POWER_OFF_CLEAN
Vroomba turned off because room was clean |
|
POWER_OFF_DIRTY
Vroomba turned off, but room was not yet clean |
|
REPEATED_CRASH
Vroomba repeated the same collision 3 times in a row |
|
TIME_OUT_CLEAN
Vroomba exceeded max number of moves allowed, but room is clean |
|
TIME_OUT_DIRTY
Vroomba exceeded max number of moves allowed and room still dirty |
|
| Method Summary | |
|---|---|
static Room.Result |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Room.Result[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Room.Result INOPERATIVE
public static final Room.Result REPEATED_CRASH
public static final Room.Result DROP
public static final Room.Result POWER_OFF_DIRTY
public static final Room.Result TIME_OUT_DIRTY
public static final Room.Result TIME_OUT_CLEAN
public static final Room.Result POWER_OFF_CLEAN
| Method Detail |
|---|
public static final Room.Result[] values()
for(Room.Result c : Room.Result.values())
System.out.println(c);
public static Room.Result valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
|
||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||