|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.mutable.MutableBoolean
public final class MutableBoolean
A mutable boolean wrapper.
| Field Summary | |
|---|---|
boolean |
value
The mutable value. |
| Constructor Summary | |
|---|---|
MutableBoolean()
|
|
MutableBoolean(boolean value)
|
|
MutableBoolean(java.lang.Boolean value)
|
|
MutableBoolean(java.lang.Number number)
|
|
MutableBoolean(java.lang.String value)
|
|
| Method Summary | |
|---|---|
MutableBoolean |
clone()
Clones object. |
int |
compareTo(MutableBoolean o)
Compares value of two same instances. |
boolean |
equals(java.lang.Object obj)
Compares this object to the specified object. |
boolean |
getValue()
Returns mutable value. |
int |
hashCode()
Returns a hashcode for this value. |
void |
setValue(boolean value)
Sets mutable value. |
void |
setValue(java.lang.Boolean value)
|
java.lang.String |
toString()
Stringify the value. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public boolean value
| Constructor Detail |
|---|
public MutableBoolean()
public MutableBoolean(boolean value)
public MutableBoolean(java.lang.String value)
public MutableBoolean(java.lang.Boolean value)
public MutableBoolean(java.lang.Number number)
| Method Detail |
|---|
public boolean getValue()
public void setValue(boolean value)
public void setValue(java.lang.Boolean value)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare with.
true if the objects are the same;
false otherwise.public int compareTo(MutableBoolean o)
compareTo in interface java.lang.Comparable<MutableBoolean>public MutableBoolean clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||