|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscranton.Guard
Encapsulates a boolean object that may be used in a variety processes to guard against something changing, the guard may be truned on or off to indicate the presence or absence of a application specific conditon.
| Field Summary | |
protected boolean |
guard
The boolean guard that is set on/off to indicate various conditions. |
| Constructor Summary | |
Guard()
Constructs a Guard object. |
|
| Method Summary | |
boolean |
isOff()
Returns true if the guard is off |
boolean |
isOn()
Returns true if the guard is on |
void |
off()
Turn the guard off |
void |
on()
Turn the guard on |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean guard
| Constructor Detail |
public Guard()
| Method Detail |
public void on()
public void off()
public boolean isOn()
public boolean isOff()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||