Class BooleanDataObject
- java.lang.Object
-
- com.opencloud.util.ImmutableDataObject
-
- BooleanDataObject
-
- All Implemented Interfaces:
DataObject,Immutable,Serializable
public final class BooleanDataObject extends ImmutableDataObject
A BooleanDataObject is an ImmutableDataObject whose content is a boolean value. It is useful where you need a DataObject but the ASN.1 type is BOOLEAN, and is used if the extendible adaptation is given.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BooleanDataObjectFALSEA BooleanDataObject whose value is false.static BooleanDataObjectTRUEA BooleanDataObject whose value is true.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbooleanValue()Gets the boolean value from this DataObject.booleanequals(Object obj)Compares some other object to this one for equality by value.inthashCode()Gets a hash code value for this object.StringtoString()Returns a printable representation of this.static BooleanDataObjectvalueOf(boolean bool)Chooses the appropriate static instance to represent the given boolean.-
Methods inherited from class com.opencloud.util.ImmutableDataObject
clone, isReadOnly, setReadOnly
-
-
-
-
Field Detail
-
TRUE
public static final BooleanDataObject TRUE
A BooleanDataObject whose value is true.
-
FALSE
public static final BooleanDataObject FALSE
A BooleanDataObject whose value is false.
-
-
Method Detail
-
valueOf
public static BooleanDataObject valueOf(boolean bool)
Chooses the appropriate static instance to represent the given boolean.- Parameters:
bool- boolean value- Returns:
- BooleanDataObject static instance
-
booleanValue
public boolean booleanValue()
Gets the boolean value from this DataObject.- Returns:
- boolean
-
toString
public String toString()
Returns a printable representation of this.
-
equals
public boolean equals(Object obj)
Compares some other object to this one for equality by value.
-
-