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