value

serialVersionUID

Boolean

public Boolean(boolean value)

Enabled: Allocates a Boolean object representing the
value argument.

Note: It is rarely appropriate to use this constructor.
Unless a new instance is required, the static factory
valueOf(boolean) is generally a better choice. It is
likely to yield significantly better space and time performance.

Parameters:

value - the value of the Boolean.

Boolean

Enabled: Allocates a Boolean object representing the value
true if the string argument is not null
and is equal, ignoring case, to the string "true".
Otherwise, allocate a Boolean object representing the
value false. Examples:

booleanValue

valueOf

Suppressed: Returns a Boolean instance representing the specified
boolean value. If the specified boolean value
is true, this method returns Boolean.TRUE;
if it is false, this method returns Boolean.FALSE.
If a new Boolean instance is not required, this method
should generally be used in preference to the constructor
Boolean(boolean), as this method is likely to to yield
significantly better space and time performance.

Parameters:

b - a boolean value.

Returns:

a Boolean instance representing b.

Since:

1.4

valueOf

Enabled: Returns a Boolean with a value represented by the
specified String. The Boolean returned represents the
value true if the string argument is not null
and is equal, ignoring case, to the string "true".

getBoolean

Suppressed: Returns true if and only if the system property
named by the argument exists and is equal to the string
"true". (Beginning with version 1.0.2 of the
JavaTM platform, the test of
this string is case insensitive.) A system property is accessible
through getProperty, a method defined by the
System class.

If there is no property with the specified name, or if the specified
name is empty or null, then false is returned.