public final class FullyBoundPredicate extends Object implements Predicate, Serializable
BinaryPredicate
to the
UnaryPredicate interface
using a constant left-side argument.
Note that although this class implements
Serializable, a given instance will
only be truly Serializable if the
underlying objects are. Attempts to serialize
an instance whose delegates are not
Serializable will result in an exception.| Constructor and Description |
|---|
FullyBoundPredicate(BinaryPredicate<? super L,? super R> predicate,
L left,
R right)
Create a new FullyBoundPredicate instance.
|
| Modifier and Type | Method and Description |
|---|---|
static <L,R> FullyBoundPredicate |
bind(BinaryPredicate<? super L,? super R> predicate,
L left,
R right)
Adapt a BinaryPredicate to the Predicate interface.
|
boolean |
equals(FullyBoundPredicate that)
Learn whether another FullyBoundPredicate is equal to this.
|
boolean |
equals(Object that) |
int |
hashCode() |
boolean |
test()
Evaluate this predicate.
|
String |
toString() |
public FullyBoundPredicate(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()
public boolean equals(FullyBoundPredicate that)
that - FullyBoundPredicate to testpublic static <L,R> FullyBoundPredicate 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-2013 The Apache Software Foundation. All Rights Reserved.