public class UpdatableBoolean extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<UpdatableBoolean>
Constructor and Description |
---|
UpdatableBoolean()
Constructs a newly allocated UpdatableBoolean object representing the
value
false . |
UpdatableBoolean(boolean value)
Constructs a newly allocated UpdatableBoolean object representing the
value argument. |
Modifier and Type | Method and Description |
---|---|
boolean |
booleanValue()
Returns the value of this UpdatableBoolean object as a boolean primitive.
|
int |
compareTo(UpdatableBoolean b)
Compares two UpdatableBoolean objects.
|
boolean |
equals(java.lang.Object obj)
Compares this object to the specified object.
|
int |
hashCode()
Returns a hash code for this object.
|
void |
setValue(boolean value)
Sets the boolean value wrapped by this object.
|
java.lang.String |
toString()
Returns a String object representing this UpdatableBoolean's value.
|
public UpdatableBoolean()
false
.public UpdatableBoolean(boolean value)
value
argument.public int compareTo(UpdatableBoolean b)
compareTo
in interface java.lang.Comparable<UpdatableBoolean>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare with.public java.lang.String toString()
toString
in class java.lang.Object
public boolean booleanValue()
public void setValue(boolean value)
value
- the new value wrapped by this object.