| java.lang.Object | |
| ↳ | java.lang.Boolean |
Boolean is the wrapper for the primitive type boolean.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Boolean | FALSE | The instance of the receiver which represents falsehood. | |||||||||
| Boolean | TRUE | The instance of the receiver which represents truth. | |||||||||
| Class<Boolean> | TYPE | The java.lang.Class that represents this class. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance of this class given a string.
| |||||||||||
Constructs a new instance of this class given true or false.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns true if the receiver represents true and false if the receiver
represents false.
| |||||||||||
Compares this | |||||||||||
Compares the argument to the receiver, and returns true if they represent
the same object using a class specific comparison.
| |||||||||||
Returns true if the system property described by the argument equal to
"true" using case insensitive comparison, and false otherwise.
| |||||||||||
Returns an integer hash code for the receiver.
| |||||||||||
Parses the string as a | |||||||||||
Converts the specified boolean to its string representation.
| |||||||||||
Returns a string containing a concise, human-readable description of the
receiver.
| |||||||||||
Returns a Boolean representing true if the argument is equal to "true"
using case insensitive comparison, and a Boolean representing false
otherwise.
| |||||||||||
Returns Boolean.TRUE if the argument is equal to "true" using case
insensitive comparison, and Boolean.FALSE representing false otherwise.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
From interface java.lang.Comparable
| |||||||||||
The instance of the receiver which represents falsehood.
The instance of the receiver which represents truth.
Constructs a new instance of this class given a string. If the string is equal to "true" using a non-case sensitive comparison, the result will be a Boolean representing true, otherwise it will be a Boolean representing false.
| string | The name of the desired boolean. |
|---|
Constructs a new instance of this class given true or false.
| value | true or false. |
|---|
Returns true if the receiver represents true and false if the receiver represents false.
Compares this Boolean to another Boolean.
If this instance has the same value as the instance passed, then
0 is returned. If this instance is true and
the instance passed is false, then a positive value is
returned. If this instance is false and the instance
passed is true, then a negative value is returned.
| that | The instance to compare to. |
|---|
| NullPointerException | if that is null. |
|---|
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
In this case, the argument must also be a Boolean, and the receiver and argument must represent the same boolean value (i.e. both true or both false).
| o | the object to compare with this object |
|---|
true if the object is the same as this object
false if it is different from this objectReturns true if the system property described by the argument equal to "true" using case insensitive comparison, and false otherwise.
| string | The name of the desired boolean. |
|---|
Returns an integer hash code for the receiver. Any two objects which
answer true when passed to equals must
answer the same value for this method.
Parses the string as a boolean. If the string is not
null and is equal to "true", regardless
case, then true is returned, otherwise false.
| s | The string to parse. |
|---|
Converts the specified boolean to its string representation. When the
boolean is true answer "true", otherwise answer
"false".
| value | the boolean |
|---|
Returns a string containing a concise, human-readable description of the receiver.
Returns a Boolean representing true if the argument is equal to "true" using case insensitive comparison, and a Boolean representing false otherwise.
| string | The name of the desired boolean. |
|---|
Returns Boolean.TRUE if the argument is equal to "true" using case insensitive comparison, and Boolean.FALSE representing false otherwise.
| b | the boolean value. |
|---|