Java java.lang Boolean fields, constructors, methods, implement or subclass

Example usage for Java java.lang Boolean fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang Boolean.

The text is from its open source code.

Field

BooleanTRUE
The Boolean object corresponding to the primitive value true .
BooleanFALSE
The Boolean object corresponding to the primitive value false .
ClassTYPE
The Class object representing the primitive type boolean.

Constructor

Boolean(boolean value)
Allocates a Boolean object representing the value argument.
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" .

Method

booleanbooleanValue()
Returns the value of this Boolean object as a boolean primitive.
intcompare(boolean x, boolean y)
Compares two boolean values.
intcompareTo(Boolean b)
Compares this Boolean instance with another.
booleanequals(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.
booleangetBoolean(String name)
Returns true if and only if the system property named by the argument exists and is equal to, ignoring case, the string "true" .
ClassgetClass()
Returns the runtime class of this Object .
inthashCode()
Returns a hash code for this Boolean object.
inthashCode(boolean value)
Returns a hash code for a boolean value; compatible with Boolean.hashCode() .
booleanparseBoolean(String s)
Parses the string argument as a boolean.
StringtoString()
Returns a String object representing this Boolean's value.
StringtoString(boolean b)
Returns a String object representing the specified boolean.
BooleanvalueOf(boolean b)
Returns a Boolean instance representing the specified boolean value.
BooleanvalueOf(String s)
Returns a Boolean with a value represented by the specified string.