L - the left argument type.R - the right argument type.public final class IgnoreRightPredicate<L,R> extends Object implements BinaryPredicate<L,R>, Serializable
UnaryPredicate
to the
BinaryPredicate interface
by ignoring the second 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 |
|---|
IgnoreRightPredicate(UnaryPredicate<? super L> predicate)
Create a new IgnoreRightPredicate.
|
| Modifier and Type | Method and Description |
|---|---|
static <L,R> IgnoreRightPredicate<L,R> |
adapt(UnaryPredicate<? super L> predicate)
Adapt a UnaryPredicate as an IgnoreRightPredicate.
|
boolean |
equals(IgnoreRightPredicate<?,?> that)
Learn whether a given IgnoreRightPredicate is equal to this.
|
boolean |
equals(Object that) |
int |
hashCode() |
boolean |
test(L left,
R right)
Evaluate this predicate.
|
String |
toString() |
public IgnoreRightPredicate(UnaryPredicate<? super L> predicate)
predicate - leftpublic 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(IgnoreRightPredicate<?,?> that)
that - IgnoreRightPredicate to testpublic static <L,R> IgnoreRightPredicate<L,R> adapt(UnaryPredicate<? super L> predicate)
L - left typeR - right typepredicate - to adaptCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.