|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.util.Bool
public class Bool
Utility class for missing convenience with Boolean and boolean.
| Method Summary | |
|---|---|
java.lang.Boolean |
asBoolean()
Returns the Boolean value of the receiver. |
boolean |
booleanValue()
Returns the boolean value of the receiver |
boolean |
equals(Bool bool)
Returns whether the given Bool object is equal to the receiver. |
boolean |
equals(boolean bool)
Returns whether the given boolean value is equal to the receiver. |
boolean |
equals(java.lang.Boolean bool)
Returns whether the given Boolean object is equal to the receiver. |
boolean |
equals(java.lang.Object obj)
Returns whether the given object is equal to the receiver. |
static Bool |
get(boolean bool)
Returns the Bool instance corresponding to the given boolean value. |
static Bool |
get(java.lang.Boolean bool)
Returns the Bool instance corresponding to the given Boolean value. |
static Bool |
get(java.lang.String boolStr)
Returns the Bool instance corresponding to the given String value. |
static Bool |
getFalse()
Returns the Bool instance that represents the true value. |
static Bool |
getTrue()
Returns the Bool instance that represents the true value. |
int |
hashCode()
Returns a hash code of the Bool object. |
boolean |
isFalse()
Returns true if the receiver is a representation of false. |
static boolean |
isFalse(java.lang.Object anObject)
Returns true, if the given object is a sort of boolean "false" representation otherwise false. |
boolean |
isTrue()
Returns true if the receiver is a representation of true. |
static boolean |
isTrue(java.lang.Object anObject)
Returns true, if the given object is a sort of boolean "true" representation otherwise false. |
Bool |
not()
Returns the opposite value of the receiver. |
static java.lang.Boolean |
toBoolean(boolean flag)
Returns the Boolean object Boolean.FALSE or Boolean.TRUE that corresponds to the given boolean flag. |
java.lang.String |
toString()
Returns the string representation of the receiver, which is either "true" or "false". |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Bool getTrue()
public static Bool getFalse()
public static boolean isTrue(java.lang.Object anObject)
public static boolean isFalse(java.lang.Object anObject)
isTrue(). All others are
treated as a false representation.
public static Bool get(boolean bool)
public static Bool get(java.lang.Boolean bool)
public static Bool get(java.lang.String boolStr)
public static java.lang.Boolean toBoolean(boolean flag)
public boolean isTrue()
public boolean isFalse()
public Bool not()
public java.lang.Boolean asBoolean()
public boolean booleanValue()
public boolean equals(boolean bool)
public boolean equals(java.lang.Boolean bool)
public boolean equals(Bool bool)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectBoolean.hashCode()public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||