public final class Bool
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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(fj.F0<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. |
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(fj.F0<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.