A
- the argument type.T
- the returned value type.public final class ConditionalFunction<A,T> extends Object implements Function<A,T>
Function
similiar to Java's "ternary"
or "conditional" operator (? :
).
Given a predicate
p and functions
f and g, evalautes
to
p.test(x) ? f.evaluate(x) : g.evaluate(x)
.Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.