public final class NullaryFunctionNullaryPredicate extends Object implements NullaryPredicate
| Constructor and Description |
|---|
NullaryFunctionNullaryPredicate(NullaryFunction<Boolean> function)
Create a new NullaryFunctionNullaryPredicate.
|
| Modifier and Type | Method and Description |
|---|---|
static NullaryFunctionNullaryPredicate |
adapt(NullaryFunction<Boolean> function)
Adapt a NullaryFunction as a NullaryPredicate.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
test()
Returns the
boolean value of the non-null
Boolean returned by the evaluate
method of my underlying function. |
String |
toString() |
public NullaryFunctionNullaryPredicate(NullaryFunction<Boolean> function)
function - to adaptpublic boolean test()
boolean value of the non-null
Boolean returned by the evaluate
method of my underlying function.
Evaluate this predicate.test in interface NullaryPredicatepublic static NullaryFunctionNullaryPredicate adapt(NullaryFunction<Boolean> function)
function - to adaptCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.