| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--java.lang.Boolean
The Boolean class represents values of type boolean.
| Field Summary | |
static Boolean | 
FALSE
A Boolean object corresponding to the value false. | 
static Boolean | 
TRUE
A Boolean object corresponding to the value true. | 
| Constructor Summary | |
Boolean(boolean value)
Create a new Boolean object with the given value. | 
|
Boolean(String s)
Create a Boolean object from a string. | 
|
| Method Summary | |
 boolean | 
booleanValue()
Return the value of this object.  | 
 boolean | 
equals(Object obj)
Return true if obj refers to the same value
 as this object. | 
 int | 
hashcode()
Return the hashcode for the Boolean object. | 
 String | 
toString()
Convert the Boolean to a string. | 
static boolean | 
valueOf(String s)
Convert a string to a boolean value.  | 
| Field Detail | 
public static final Boolean TRUE
Boolean object corresponding to the value true.public static final Boolean FALSE
Boolean object corresponding to the value false.| Constructor Detail | 
public Boolean(boolean value)
Boolean object with the given value.value - the boolean value the object should be given.public Boolean(String s)
Boolean object from a string. The value of the
 object is true if, and only if, s is the string
 "true", ignoring case.s - the string to base the object value on.| Method Detail | 
public String toString()
Boolean to a string. The value of the returned
 string is either "true" or "false".public boolean equals(Object obj)
true if obj refers to the same value
 as this object.obj - the object to compare to.obj refer to the same value.public int hashcode()
Boolean object. If the value of
 this object is true then 1231 is returned. If the value is
 false then 1237 is returned.public boolean booleanValue()
Boolean object.public static boolean valueOf(String s)
true
 if and only if the string is not null, and is equal to "true",
 ignoring case.s - String object to covert to a boolean.String as a boolean.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||