Methods Summary |
---|
public boolean | booleanValue()Returns the value of this Boolean object as a boolean
primitive.
return value;
|
public boolean | equals(java.lang.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.
if (obj instanceof Boolean) {
return value == ((Boolean)obj).booleanValue();
}
return false;
|
public int | hashCode()Returns a hash code for this Boolean object.
return value ? 1231 : 1237;
|
public java.lang.String | toString()Returns a String object representing this Boolean's value.
If this object represents the value true , a string equal
to "true" is returned. Otherwise, a string equal to
"false" is returned.
return value ? "true" : "false";
|