L
- the left argument type.R
- the right argument type.public final class IgnoreRightPredicate<L,R> extends Object implements BinaryPredicate<L,R>
Predicate
to the
BinaryPredicate
interface
by ignoring the second binary argument.Constructor and Description |
---|
IgnoreRightPredicate(Predicate<? super L> predicate)
Create a new IgnoreRightPredicate.
|
Modifier and Type | Method and Description |
---|---|
static <L,R> IgnoreRightPredicate<L,R> |
adapt(Predicate<? super L> predicate)
Adapt a Predicate as an IgnoreRightPredicate.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
test(L left,
R right)
Evaluate this predicate.
|
String |
toString() |
public IgnoreRightPredicate(Predicate<? 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 static <L,R> IgnoreRightPredicate<L,R> adapt(Predicate<? super L> predicate)
L
- left typeR
- right typepredicate
- to adaptCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.