A
- the predicate argument type.public final class ConditionalPredicate<A> extends Object implements Predicate<A>
Predicate
similiar to Java's "ternary"
or "conditional" operator (? :
).
Given three predicate
p, q, r,
tests
to
p.test(x) ? q.test(x) : r.test(x)
.Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.