L - the left argument type.R - the right argument type.public class CompositeBinaryPredicate<L,R> extends Object implements BinaryPredicate<L,R>
BinaryPredicate composed of
one binary predicate, p, and two
functions, f and g,
evaluating the ordered parameters x, y
to p(f(x),g(y)).| Constructor and Description |
|---|
CompositeBinaryPredicate(BinaryPredicate<? super G,? super H> f,
Function<? super L,? extends G> g,
Function<? super R,? extends H> h)
Create a new CompositeBinaryPredicate.
|
public CompositeBinaryPredicate(BinaryPredicate<? super G,? super H> f, Function<? super L,? extends G> g, Function<? super R,? extends H> h)
G - right function type.H - right function type.f - BinaryPredicate to test output(f), output(g)g - left Functionh - right Functionpublic boolean test(L left, R right)
test in interface BinaryPredicate<L,R>left - the L element of the ordered pair of argumentsright - the R element of the ordered pair of argumentsCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.