java.lang
Class Boolean
java.lang.Object
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
FALSE
public static final Boolean FALSE
TRUE
public static final Boolean TRUE
Boolean
public Boolean(boolean b)
Boolean
public Boolean(String s)
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)