|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object us.asciiroth.client.core.State
public class State
A typesafe enum that represents anything that has a boolean state, such as doors (open or closed), switches (on or off), etc.
Field Summary | |
---|---|
static State |
OFF
A piece in the off state. |
static State |
ON
A piece in the on state. |
Method Summary | |
---|---|
static State |
byName(java.lang.String name)
Retrieve the state by name (either "on" or "off"). |
java.lang.String |
getName()
Get the name of the current state |
boolean |
isOff()
Is this state the OFF state? |
boolean |
isOn()
Is this state the ON state? |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final State OFF
public static final State ON
Method Detail |
---|
public static State byName(java.lang.String name)
name
- the name of the state object to retrieve
public java.lang.String getName()
public boolean isOff()
public boolean isOn()
|
0.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
© 2009 Alx Dark