public final class ConditionalNullaryPredicate extends Object implements NullaryPredicate
NullaryPredicate
similiar to Java's "ternary"
or "conditional" operator (? :
).
Given three predicates
p, q, r,
tests
to
p.test() ? q.test() : r.test()
.Constructor and Description |
---|
ConditionalNullaryPredicate(NullaryPredicate ifPred,
NullaryPredicate thenPred,
NullaryPredicate elsePred)
Create a new ConditionalNullaryPredicate.
|
public ConditionalNullaryPredicate(NullaryPredicate ifPred, NullaryPredicate thenPred, NullaryPredicate elsePred)
ifPred
- ifthenPred
- thenelsePred
- elsepublic boolean test()
test
in interface NullaryPredicate
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.