|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--java.lang.Boolean
The Boolean class provides an object wrapper for Boolean data values, and serves as a place for boolean-oriented operations. A wrapper is useful because most of Java's utility classes require the use of objects. Since booleans are not objects in Java, they need to be "wrapped" in a Boolean instance.
| Field Summary | |
static Boolean |
FALSE
Assigns this Boolean to be false. |
static Boolean |
TRUE
Assigns this Boolean to be true. |
| Constructor Summary | |
Boolean(boolean value)
Constructs a Boolean object initialized to the specified boolean value. |
|
Boolean(String s)
Constructs a Boolean object initialized to the value specified by the String parameter. |
|
| Method Summary | |
boolean |
booleanValue()
Returns the value of this Boolean object as a boolean. |
boolean |
equals(Object obj)
Compares this object against the specified object. |
static boolean |
getBoolean(String name)
Gets a Boolean from the properties. |
int |
hashCode()
Returns a hashcode for this Boolean. |
String |
toString()
Returns a String object representing this Boolean's value. |
static Boolean |
valueOf(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 |
| Field Detail |
public static final Boolean TRUE
public static final Boolean FALSE
| Constructor Detail |
public Boolean(boolean value)
value - the value of the booleanpublic Boolean(String s)
s - the String to be converted to a Boolean| Method Detail |
public boolean booleanValue()
public static Boolean valueOf(String s)
s - the String to be parsedpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class ObjectHashtablepublic boolean equals(Object obj)
equals in class Objectobj - the object to compare with
Hashtablepublic static boolean getBoolean(String name)
name - the property name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||