Class java.lang.Boolean
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.lang.Boolean

java.lang.Object
   |
   +----java.lang.Boolean

public final class Boolean
extends Object
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.

Variable Index

 o FALSE
Assigns this Boolean to be false.
 o MAX_VALUE
The maximum value a Character can have.
 o MIN_VALUE
The minimum value a Charater can have.
 o TRUE
Assigns this Boolean to be true.

Constructor Index

 o Boolean(boolean)
Constructs a Boolean object initialized to the specified boolean value.
 o Boolean(String)
Constructs a Boolean object initialized to the value specified by the String parameter.

Method Index

 o booleanValue()
Returns the value of this Boolean object as a boolean.
 o equals(Object)
Compares this object against the specified object.
 o getBoolean(String)
Gets a Boolean from the properties.
 o hashCode()
Returns a hashcode for this Boolean.
 o toString()
Returns a new String object representing this Boolean's value.
 o valueOf(String)
Returns the boolean value represented by the specified String.

Variables

 o TRUE
  public final static Boolean TRUE
Assigns this Boolean to be true.
 o FALSE
  public final static Boolean FALSE
Assigns this Boolean to be false.
 o MIN_VALUE
  public final static char MIN_VALUE
The minimum value a Charater can have. The lowest minimum value an Integer can have is ''.
 o MAX_VALUE
  public final static char MAX_VALUE
The maximum value a Character can have. The greatest maximum value an Integer can have is 'ÿ'.

Constructors

 o Boolean
  public Boolean(boolean value)
Constructs a Boolean object initialized to the specified boolean value.
Parameters:
value - the value of the boolean
 o Boolean
  public Boolean(String s)
Constructs a Boolean object initialized to the value specified by the String parameter.
Parameters:
s - the String to be converted to a Boolean

Methods

 o booleanValue
  public boolean booleanValue()
Returns the value of this Boolean object as a boolean.
 o valueOf
  public static Boolean valueOf(String s)
Returns the boolean value represented by the specified String.
Parameters:
s - the String to be parsed
 o toString
  public String toString()
Returns a new String object representing this Boolean's value.
Overrides:
toString in class Object
 o hashCode
  public int hashCode()
Returns a hashcode for this Boolean.
Overrides:
hashCode in class Object
 o equals
  public boolean equals(Object obj)
Compares this object against the specified object.
Parameters:
obj - the object to compare with
Returns:
true if the objects are the same; false otherwise.
Overrides:
equals in class Object
 o getBoolean
  public static boolean getBoolean(String name)
Gets a Boolean from the properties.
Parameters:
name - the property name.

All Packages  Class Hierarchy  This Package  Previous  Next  Index