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