java.lang
Class Boolean

java.lang.Object
  extended by java.lang.Boolean
All Implemented Interfaces:
Comparable<Boolean>

public final class Boolean
extends Object
implements Comparable<Boolean>

Wrapper class for booleans.

Author:
Sven Köhler

Field Summary
static Boolean FALSE
           
static Boolean TRUE
           
 
Constructor Summary
Boolean(boolean b)
           
Boolean(String s)
           
 
Method Summary
 boolean booleanValue()
           
 int compareTo(Boolean ob)
          Compares this with another Object.
 boolean equals(Object o)
           
 int hashCode()
           
static boolean parseBoolean(String s)
           
 String toString()
           
static String toString(boolean b)
           
static Boolean valueOf(boolean b)
           
static Boolean valueOf(String s)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FALSE

public static final Boolean FALSE

TRUE

public static final Boolean TRUE
Constructor Detail

Boolean

public Boolean(boolean b)

Boolean

public Boolean(String s)
Method Detail

booleanValue

public boolean booleanValue()

compareTo

public int compareTo(Boolean ob)
Description copied from interface: Comparable
Compares this with another Object. Returns -1 if this object is smaller, 0 if both objects are equal and 1 if this object is bigger.

Specified by:
compareTo in interface Comparable<Boolean>
Parameters:
ob - the object to compare with
Returns:
one of the values -1, 0, 1

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

parseBoolean

public static boolean parseBoolean(String s)

toString

public String toString()
Overrides:
toString in class Object

toString

public static String toString(boolean b)

valueOf

public static Boolean valueOf(boolean b)

valueOf

public static Boolean valueOf(String s)