|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Boolean
public final class Boolean
Boolean provides class for boolean values stored in objects.
| Field Summary | |
|---|---|
static Boolean |
FALSE
default instance representing the boolean value false. |
static Boolean |
TRUE
default instance representing the boolean value true. |
static Class<Boolean> |
TYPE
type for boolean. |
| Constructor Summary | |
|---|---|
Boolean(boolean value)
Constructor for an instance of Boolean with the given value |
|
Boolean(String s)
Constructor for an instance of Boolean with the value taken from a string. |
|
| Method Summary | |
|---|---|
boolean |
booleanValue()
booleanValue return the boolean value represented by this. |
int |
compareTo(Boolean b)
compareTo compares this boolean value to the argument b. |
boolean |
equals(Object obj)
equals compares this to obj |
static boolean |
getBoolean(String name)
getBoolean determines the value of a given boolean property. |
int |
hashCode()
hashCode determines a hashcode for this instance. |
static boolean |
parseBoolean(String s)
parseBoolean parses a string as a boolean value. |
String |
toString()
toString converts the value represented by this as a string. |
static String |
toString(boolean b)
toString converts the value represented by the parameter b to a string. |
static Boolean |
valueOf(boolean b)
valueOf returns a boolean instance representing the given boolean value. |
static Boolean |
valueOf(String s)
valueOf returns a boolean instance representing the boolean value given obtained by parseBoolean(s) for the given 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
public static final Class<Boolean> TYPE
| Constructor Detail |
|---|
public Boolean(boolean value)
value - the value the instance represents.public Boolean(String s)
s - the string, if s is not null and
s.compareToIgnoreCase("true") returns true, the value will be
true, else the value will be false.| Method Detail |
|---|
public static boolean parseBoolean(String s)
s - the string or null.
public int compareTo(Boolean b)
compareTo in interface Comparable<Boolean>b - another boolean value.
public boolean booleanValue()
public static Boolean valueOf(String s)
s - the string.
public static Boolean valueOf(boolean b)
b - the value.
public String toString()
toString in class Objectpublic static String toString(boolean b)
b - the value to be converted.
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - another object.
public static boolean getBoolean(String name)
name - the name of the property.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||