L - the left argument type.R - the right argument type.public class UnaryCompositeBinaryPredicate<L,R> extends Object implements BinaryPredicate<L,R>, Serializable
BinaryPredicate composed of
one binary predicate, p, and two unary
functions, f and g,
evaluating the ordered parameters x, y
to p(f(x),g(y)).
Note that although this class implements
Serializable, a given instance will
only be truly Serializable if all the
underlying functors are. Attempts to serialize
an instance whose delegates are not all
Serializable will result in an exception.
| Constructor and Description |
|---|
UnaryCompositeBinaryPredicate(BinaryPredicate<? super G,? super H> f,
UnaryFunction<? super L,? extends G> g,
UnaryFunction<? super R,? extends H> h)
Create a new UnaryCompositeBinaryPredicate.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object that) |
boolean |
equals(UnaryCompositeBinaryPredicate<?,?> that)
Learn whether another UnaryCompositeBinaryPredicate is equal to this.
|
int |
hashCode() |
boolean |
test(L left,
R right)
Evaluate this predicate.
|
String |
toString() |
public UnaryCompositeBinaryPredicate(BinaryPredicate<? super G,? super H> f, UnaryFunction<? super L,? extends G> g, UnaryFunction<? super R,? extends H> h)
G - right function type.H - right function type.f - BinaryPredicate to test output(f), output(g)g - left UnaryFunctionh - right UnaryFunctionpublic 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 argumentspublic boolean equals(UnaryCompositeBinaryPredicate<?,?> that)
that - UnaryCompositeBinaryPredicate to testCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.