|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrebuild.util.ref.RefBoolean
public final class RefBoolean
Reference Boolean is the same as Boolean
but allows you to set the boolean without creating a new Boolean
.
Field Summary | |
---|---|
static RefBoolean |
FALSE
The RefBoolean object corresponding to the primitive value false. |
static RefBoolean |
TRUE
The RefBoolean object corresponding to the primitive value true. |
Constructor Summary | |
---|---|
RefBoolean()
Create a new RefBoolean set to the default of false. |
|
RefBoolean(boolean value)
Create a new RefBoolean using a boolean primitive. |
|
RefBoolean(java.lang.Boolean value)
Create a new RefBoolean using a Boolean . |
|
RefBoolean(boolean value,
boolean fixed)
Create a new RefBoolean using a boolean primitive. |
|
RefBoolean(java.lang.Boolean value,
boolean fixed)
Create a new RefBoolean using a Boolean . |
Method Summary | |
---|---|
boolean |
booleanValue()
Returns The value of this RefBoolean object as a boolean primitive. |
RefBoolean |
clone()
Create a clone of the current object. |
boolean |
equals(java.lang.Object obj)
Returns true if and only if the argument is not null and is a RefBoolean or Boolean object that represents the same boolean value as this object. |
int |
hashCode()
Returns a hash code for this RefBoolean object. |
boolean |
isReadOnly()
If this RefBoolean is read only. |
RefBoolean |
setValue(boolean value)
Set the value of this RefBoolean object with a boolean primitive. |
RefBoolean |
setValue(java.lang.Boolean value)
Set the value of this RefBoolean object with a Boolean . |
void |
toggle()
Toggle the boolean value. |
java.lang.String |
toString()
Returns a String object representing this RefBoolean 's value. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final RefBoolean FALSE
RefBoolean
object corresponding to the primitive value false.
public static final RefBoolean TRUE
RefBoolean
object corresponding to the primitive value true.
Constructor Detail |
---|
public RefBoolean()
RefBoolean
set to the default of false.
public RefBoolean(boolean value)
RefBoolean
using a boolean primitive.
value
- The boolean primitive to set this RefBoolean
with.public RefBoolean(boolean value, boolean fixed)
RefBoolean
using a boolean primitive.
value
- The boolean primitive to set this RefBoolean
with.fixed
- If this item is read only and cannot be modified.public RefBoolean(java.lang.Boolean value)
RefBoolean
using a Boolean
.
value
- The Boolean
to set this RefBoolean
with.public RefBoolean(java.lang.Boolean value, boolean fixed)
RefBoolean
using a Boolean
.
value
- The Boolean
to set this RefBoolean
with.fixed
- If this item is read only and cannot be modified.Method Detail |
---|
public boolean isReadOnly()
RefBoolean
is read only.
true
if this RefBoolean
is read only, false
if otherwise.public boolean booleanValue()
RefBoolean
object as a boolean primitive.
public RefBoolean setValue(boolean value)
RefBoolean
object with a boolean primitive.
value
- The primitive boolean value to set this object.
public RefBoolean setValue(java.lang.Boolean value)
RefBoolean
object with a Boolean
.
value
- The Boolean
value to set this object.
public boolean equals(java.lang.Object obj)
RefBoolean
or Boolean
object that represents the same boolean value as this object.
equals
in class java.lang.Object
obj
- The object to compare with.
RefBoolean
objects represent the same value; false otherwise.public int hashCode()
RefBoolean
object.
hashCode
in class java.lang.Object
public java.lang.String toString()
String
object representing this RefBoolean
's value.
toString
in class java.lang.Object
public RefBoolean clone()
RefBoolean
.public void toggle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |