L - the left argument type.R - the right argument type.public final class IgnoreLeftPredicate<L,R> extends Object implements BinaryPredicate<L,R>, Serializable
UnaryPredicate
to the
BinaryPredicate interface
by ignoring the first binary argument.
Note that although this class implements
Serializable, a given instance will
only be truly Serializable if the
underlying functor is. Attempts to serialize
an instance whose delegate is not
Serializable will result in an exception.| Constructor and Description |
|---|
IgnoreLeftPredicate(UnaryPredicate<? super R> predicate)
Create a new IgnoreLeftPredicate.
|
| Modifier and Type | Method and Description |
|---|---|
static <L,R> IgnoreLeftPredicate<L,R> |
adapt(UnaryPredicate<? super R> predicate)
Adapt a UnaryPredicate to an IgnoreLeftPredicate.
|
boolean |
equals(IgnoreLeftPredicate<?,?> that)
Learn whether another IgnoreLeftPredicate is equal to this.
|
boolean |
equals(Object that) |
int |
hashCode() |
boolean |
test(L left,
R right)
Evaluate this predicate.
|
String |
toString() |
public IgnoreLeftPredicate(UnaryPredicate<? super R> predicate)
predicate - the right predicatepublic 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(IgnoreLeftPredicate<?,?> that)
that - the IgnoreLeftPredicate to testpublic static <L,R> IgnoreLeftPredicate<L,R> adapt(UnaryPredicate<? super R> predicate)
L - left typeR - right typepredicate - to adaptCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.