|
Copyright 2008 - 2010 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfj.test.Bool
public final class Bool
A boolean wrapper that works well with properties.
| Method Summary | |
|---|---|
static Bool |
bool(boolean b)
Construct a Bool from the given value. |
Property |
implies(Bool c)
Returns a property that produces a result only if this value is true. |
Property |
implies(boolean c)
Returns a property that produces a result only if this value is true. |
Property |
implies(P1<Property> p)
Returns a property that produces a result only if this value is true. |
Property |
implies(Property p)
Returns a property that produces a result only if this value is true. |
boolean |
is()
Returns true if this value is true, false otherwise. |
boolean |
isNot()
Returns false if this value is true, true otherwise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean is()
true if this value is true, false otherwise.
true if this value is true, false otherwise.public boolean isNot()
false if this value is true, true otherwise.
false if this value is true, true otherwise.public Property implies(P1<Property> p)
p - The property to return if this value is true.
public Property implies(Property p)
p - The property to return if this value is true.
public Property implies(Bool c)
c - The value to construct a property with to return if this value is true.
public Property implies(boolean c)
c - The value to construct a property with to return if this value is true.
public static Bool bool(boolean b)
Bool from the given value.
b - The value to construct a Bool with.
Bool from the given value.
|
Copyright 2008 - 2010 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||