|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.core.Switch
public class Switch
This class provides a modifiable boolean object. In contrast to the class
Boolean this class has also a setter for the
encapsulated boolean value.
This class cures the deficiency of Java to provide booleans as first-class objects.
| Constructor Summary | |
|---|---|
Switch(boolean on)
Creates a new object with a given boolean value. |
|
| Method Summary | |
|---|---|
boolean |
isOn()
Getter for value. |
void |
set(boolean on)
Setter for value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Switch(boolean on)
on - the initial value| Method Detail |
|---|
public boolean isOn()
public void set(boolean on)
on - the value to set.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||