public class Boolean extends Unit
Constructor and Description |
---|
Boolean(boolean value)
Construct a new Boolean from the given value.
|
Boolean(java.lang.Number value)
Construct a Boolean from the numerical value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
booleanValue() |
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getSerializedValue() |
java.lang.String |
toString() |
public Boolean(boolean value)
value
- the boolean value.public Boolean(java.lang.Number value)
value
- If the value == 1, the constructed object will be true.public boolean booleanValue()
public java.lang.Boolean getSerializedValue()
getSerializedValue
in class Unit
public java.lang.String toString()
toString
in class java.lang.Object