API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.lang. Boolean View Source
Author(s)
Arthur van Hoff
Since
JDK1.0
Version
1.53, 11/17/05
Serial
Hierarchy
 Object
      Boolean
Implements
 Serializable
 Comparable
Subclasses
Description
publicfinal class Boolean
  The Boolean class wraps a value of the primitive type boolean in an object.
See also:   
Constructors
public Boolean (boolean value)
  Allocates a Boolean object representing the value argument.
public Boolean (String s)
  Allocates a Boolean object representing the value true if the string argument is not null and is equal, ignoring case, to the string "true".
Methods
Hide/Show inherited methods
public boolean booleanValue ()
  Returns the value of this Boolean object as a boolean primitive.
public int compareTo (Boolean b)
  Compares this Boolean instance with another.
public boolean equals (Object obj)
  Returns true if and only if the argument is not null and is a Boolean object that represents the same boolean value as this object.
publicstatic boolean getBoolean (String name)
  Returns true if and only if the system property named by the argument exists and is equal to the string "true".
public int hashCode ()
  Returns a hash code for this Boolean object.
publicstatic boolean parseBoolean (String s)
  Parses the string argument as a boolean.
public String toString ()
  Returns a String object representing this Boolean's value.
publicstatic String toString (boolean b)
  Returns a String object representing the specified boolean.
publicstatic Boolean valueOf (boolean b)
  Returns a Boolean instance representing the specified boolean value.
publicstatic Boolean valueOf (String s)
  Returns a Boolean with a value represented by the specified string.
Fields
Hide/Show inherited fields
publicfinalstatic Boolean FALSE
The Boolean object corresponding to the primitive value false.
publicfinalstatic Boolean TRUE
The Boolean object corresponding to the primitive value true.
publicfinalstatic Class<Boolean> TYPE
  The Class object representing the primitive type boolean.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar