A - the argument type.public final class RightBoundPredicate<A> extends Object implements Predicate<A>
BinaryPredicate
to the
Predicate interface
using a constant left-side argument.| Constructor and Description |
|---|
RightBoundPredicate(BinaryPredicate<? super A,? super R> predicate,
R arg)
Create a new RightBoundPredicate.
|
| Modifier and Type | Method and Description |
|---|---|
static <L,R> RightBoundPredicate<L> |
bind(BinaryPredicate<? super L,? super R> predicate,
R arg)
Adapt a BinaryPredicate as a Predicate.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
test(A obj)
Evaluate this predicate.
|
String |
toString() |
public RightBoundPredicate(BinaryPredicate<? super A,? super R> predicate, R arg)
R - bound arg typepredicate - the predicate to adaptarg - the constant argument to usepublic static <L,R> RightBoundPredicate<L> bind(BinaryPredicate<? super L,? super R> predicate, R arg)
L - the left argument type.R - the right argument type.predicate - to adaptarg - right sideCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.