public class BooleanCp
extends java.lang.Number
implements java.lang.Comparable, java.io.Serializable
| Modifier and Type | Field and Description | 
|---|---|
| static BooleanCp | FALSEThe  BooleanCpobject corresponding to the primitive valuefalse. | 
| static BooleanCp | TRUEThe  BooleanCpobject corresponding to the primitive valuetrue. | 
| Constructor and Description | 
|---|
| BooleanCp(boolean value)Deprecated. 
 It is rarely appropriate to use this constructor. The static
             factory  valueOf(boolean)is generally a better choice,
             as it is likely to yield significantly better space and time
             performance. Also consider using the final fieldsTRUEandFALSEif possible. | 
| BooleanCp(java.lang.Boolean bObj)Deprecated. 
 It is rarely appropriate to use this constructor. The static
             factory  valueOf(Boolean)is generally a better choice,
             as it is likely to yield significantly better space and time
             performance. Also consider using the final fieldsTRUEandFALSEif possible. | 
| BooleanCp(java.lang.String str)Deprecated. 
 It is rarely appropriate to use this constructor. The static
             factory  valueOf(String)is generally a better choice,
             as it is likely to yield significantly better space and time
             performance. Also consider using the final fieldsTRUEandFALSEif possible. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | booleanValue()Returns the value of this BooleanCp object as a boolean primitive. | 
| byte | byteValue()Returns the value of this object as a byte. | 
| int | compareTo(java.lang.Object obj)Compares this object with the specified object 'obj'. | 
| double | doubleValue()Returns the value of this object as a double. | 
| boolean | equals(java.lang.Object obj)Returns true if and only if the argument is not null and is a BooleanCp or
 Boolean object that represents the same boolean value as this object. | 
| float | floatValue()Returns the value of this object as a float. | 
| java.lang.Boolean | getBooleanObj()Returns the handle of the Boolean object held by this object. | 
| int | hashCode()Returns a hash code for this BooleanCp object. | 
| int | intValue()Returns the value of this object as an int. | 
| long | longValue()Returns the value of this object as a long. | 
| short | shortValue()Returns the value of this object as a short. | 
| java.lang.String | toString()Returns a String object representing this BooleanCp's value. | 
| static BooleanCp | valueOf(boolean value)Get a BooleanCp object representing the value argument. | 
| static BooleanCp | valueOf(java.lang.Boolean value)Get a BooleanCp object representing the value argument. | 
| static BooleanCp | valueOf(java.lang.String str)Get a BooleanCp object representing the value argument. | 
public static final BooleanCp FALSE
BooleanCp object corresponding to the primitive value
 false.public static final BooleanCp TRUE
BooleanCp object corresponding to the primitive value
 true.public BooleanCp(boolean value)
valueOf(boolean) is generally a better choice,
             as it is likely to yield significantly better space and time
             performance. Also consider using the final fields TRUE
             and FALSE if possible.value - the value of the BooleanCp.public BooleanCp(java.lang.Boolean bObj)
valueOf(Boolean) is generally a better choice,
             as it is likely to yield significantly better space and time
             performance. Also consider using the final fields TRUE
             and FALSE if possible.bObj - the value of the BooleanCp.public BooleanCp(java.lang.String str)
valueOf(String) is generally a better choice,
             as it is likely to yield significantly better space and time
             performance. Also consider using the final fields TRUE
             and FALSE if possible.str - the string to be converted to a BooleanCp.public static BooleanCp valueOf(boolean value)
value - the value of the BooleanCp.public static BooleanCp valueOf(java.lang.Boolean value)
value - the value of the BooleanCp.public static BooleanCp valueOf(java.lang.String str)
str - the string to be converted to a BooleanCp.public boolean booleanValue()
public byte byteValue()
byteValue in class java.lang.Numberpublic int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparableobj - an object to compare to.java.lang.ClassCastException - if the specified object's type prevents it
                               from being compared to this object.public double doubleValue()
doubleValue in class java.lang.Numberpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare with.public float floatValue()
floatValue in class java.lang.Numberpublic java.lang.Boolean getBooleanObj()
public int hashCode()
hashCode in class java.lang.Objectpublic int intValue()
intValue in class java.lang.Numberpublic long longValue()
longValue in class java.lang.Numberpublic short shortValue()
shortValue in class java.lang.Numberpublic java.lang.String toString()
toString in class java.lang.Object