A - the argument type.public final class UnaryNot<A> extends Object implements UnaryPredicate<A>, 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 |
|---|
UnaryNot(UnaryPredicate<? super A> predicate)
Create a new UnaryNot.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object that) |
boolean |
equals(UnaryNot<?> that)
Learn whether another UnaryNot is equal to this.
|
int |
hashCode() |
static <A> UnaryPredicate<A> |
not(UnaryPredicate<? super A> pred)
Invert a UnaryPredicate.
|
boolean |
test(A obj)
Evaluate this predicate.
|
String |
toString() |
public UnaryNot(UnaryPredicate<? super A> predicate)
predicate - UnaryPredicate to negatepublic boolean test(A obj)
test in interface UnaryPredicate<A>obj - the A object to testpublic boolean equals(UnaryNot<?> that)
that - UnaryNot to testpublic static <A> UnaryPredicate<A> not(UnaryPredicate<? super A> pred)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.