|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Number com.isti.util.BooleanCp
Class BooleanCp is a 'Boolean'-like wrapper class which holds a boolean value and implements the Comparable interface.
Constructor Summary | |
BooleanCp(boolean value)
Allocates a BooleanCp object representing the value argument. |
|
BooleanCp(java.lang.Boolean bObj)
Allocates a BooleanCp object which holds the given Boolean object. |
|
BooleanCp(java.lang.String str)
Allocates a BooleanCp object representing the value true if the string argument is not null and is equal, ignoring case, to the string "true". |
Method Summary | |
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(java.lang.String s)
Returns the boolean value represented by the specified String. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BooleanCp(boolean value)
value
- the value of the BooleanCp.public BooleanCp(java.lang.String str)
str
- the string to be converted to a BooleanCp.public BooleanCp(java.lang.Boolean bObj)
bObj
- the value of the BooleanCp.Method Detail |
public java.lang.Boolean getBooleanObj()
public boolean booleanValue()
public static BooleanCp valueOf(java.lang.String s)
s
- a string.
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object obj)
obj
- the object to compare with.
public int intValue()
public long longValue()
public float floatValue()
public double doubleValue()
public byte byteValue()
public short shortValue()
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
obj
- an object to compare to.
java.lang.ClassCastException
- if the specified object's type
prevents it from being compared to this object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |