    All Packages    This Package    Previous    Next

# Class java.lang.Boolean

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

public final class Boolean
extends Object

A wrapper for booleans.

Version:
  1.9, 31 Jan 1995
Author:
  Arthur van Hoff

##

FALSE
TRUE

##

Boolean(boolean)
  Constructs an Boolean object with the specified boolean value.

##

booleanValue()
  Returns the value of the Boolean as a boolean.
equals(Object)
  Compares this object against some other object.
toString()
  Returns a string object representing this boolean's value.

##

TRUE

      public final static Boolean TRUE

FALSE

      public final static Boolean FALSE

##

Boolean

      public Boolean(boolean value)

  Constructs an Boolean object with the specified boolean value.
  Parameters:
    value - the value of the Boolean

##

booleanValue

      public boolean booleanValue()

  Returns the value of the Boolean as a boolean.

toString

      public String toString()

  Returns a string object representing this boolean's value.
  Overrides:
    toString in class Object

equals

      public boolean equals(Object obj)

  Compares this object against some other object.
  Parameters:
    obj - the object to compare with
  Returns:
    true if the object is the same
  Overrides:
    equals in class Object

    All Packages    This Package    Previous    Next