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(java.lang.Object obj)
Compares some other object to this one for equality by value.
|
int |
hashCode()
Gets a hash code value for this object.
|
java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- other objectpublic int hashCode()
hashCode
in class java.lang.Object