Constructor Summary |
Boolean(bool b) Create an immutable object with a specific bool value. |
Method Summary |
|
bool |
boolValue() Return the bool value |
bool | equals(Object obj) |
int | hashCode() |
String | toString() |
static Boolean |
valueOf(bool b) Return an immutable object with a specific bool value. |
Constructor Detail |
public Boolean(bool b)
Create an immutable object with a specific bool value.
Prefer using Boolean.valueOf which might be more efficient because it re-uses singletons.
Method Detail |
public bool boolValue()
Return the bool value
Returns:
the bool value
public bool equals(Object obj)
public int hashCode()
public String toString()
public static Boolean valueOf(bool b)
Return an immutable object with a specific bool value.
This method re-uses singletons.