public final class BooleanDataObject extends ImmutableDataObject
Modifier and Type | Field and Description |
---|---|
static BooleanDataObject |
FALSE
A BooleanDataObject whose value is false.
|
static BooleanDataObject |
TRUE
A BooleanDataObject whose value is true.
|
Modifier and Type | Method and Description |
---|---|
boolean |
booleanValue()
Gets the boolean value from this DataObject.
|
boolean |
equals(Object obj)
Compares some other object to this one for equality by value.
|
int |
hashCode()
Gets a hash code value for this object.
|
String |
toString()
Returns a printable representation of this.
|
static BooleanDataObject |
valueOf(boolean bool)
Chooses the appropriate static instance to represent the given boolean.
|
clone, isReadOnly, setReadOnly
public static final BooleanDataObject TRUE
public static final BooleanDataObject FALSE
public static BooleanDataObject valueOf(boolean bool)
bool
- boolean valuepublic boolean booleanValue()
public String toString()
public boolean equals(Object obj)