public final class NullaryPredicateNullaryFunction extends Object implements NullaryFunction<Boolean>
Predicate
to the
NullaryFunction
interface.Constructor and Description |
---|
NullaryPredicateNullaryFunction(NullaryPredicate predicate)
Create a new NullaryPredicateNullaryFunction.
|
Modifier and Type | Method and Description |
---|---|
static NullaryPredicateNullaryFunction |
adapt(NullaryPredicate predicate)
Adapt a NullaryPredicate to the NullaryFunction interface.
|
boolean |
equals(Object obj) |
Boolean |
evaluate()
Evaluate this function.
|
int |
hashCode() |
String |
toString() |
public NullaryPredicateNullaryFunction(NullaryPredicate predicate)
predicate
- to adaptpublic Boolean evaluate()
Boolean.TRUE
(Boolean.FALSE
)
when the test
method of my underlying
predicate returns true
(false
).evaluate
in interface NullaryFunction<Boolean>
null
Boolean
instancepublic static NullaryPredicateNullaryFunction adapt(NullaryPredicate predicate)
predicate
- to adaptCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.