L - the left argument type.R - the right argument type.public final class BinaryNot<L,R> extends Object implements BinaryPredicate<L,R>, Serializable
Tests to the logical inverse
of some other predicate.
Note that although this class implements
Serializable, a given instance will
only be truly Serializable if the
underlying functor is. Attempts to serialize
an instance whose delegate is not
Serializable will result in an exception.
| Constructor and Description |
|---|
BinaryNot(BinaryPredicate<? super L,? super R> predicate)
Create a new BinaryNot.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(BinaryNot<?,?> that)
Learn whether another BinaryNot is equal to this.
|
boolean |
equals(Object that) |
int |
hashCode() |
static <L,R> BinaryPredicate<L,R> |
not(BinaryPredicate<? super L,? super R> that)
Negate a BinaryPredicate.
|
boolean |
test(L left,
R right)
Evaluate this predicate.
|
String |
toString() |
public BinaryNot(BinaryPredicate<? super L,? super R> predicate)
predicate - BinaryPredicate to negatepublic 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 boolean equals(BinaryNot<?,?> that)
that - BinaryNot to testpublic static <L,R> BinaryPredicate<L,R> not(BinaryPredicate<? super L,? super R> that)
L - the left argument type.R - the right argument type.that - BinaryPredicate to negateCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.