org.apache.commons.collections.functors
public final class NotPredicate extends Object implements Predicate, PredicateDecorator, Serializable
Since: Commons Collections 3.0
Version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $
Constructor Summary | |
---|---|
NotPredicate(Predicate predicate)
Constructor that performs no validation.
|
Method Summary | |
---|---|
boolean | evaluate(Object object)
Evaluates the predicate returning the opposite to the stored predicate.
|
static Predicate | getInstance(Predicate predicate)
Factory to create the not predicate.
|
Predicate[] | getPredicates()
Gets the predicate being decorated.
|
getInstance
if you want that.
Parameters: predicate the predicate to call after the null check
Parameters: object the input object
Returns: true if predicate returns false
Parameters: predicate the predicate to decorate, not null
Returns: the predicate
Throws: IllegalArgumentException if the predicate is null
Returns: the predicate as the only element in an array
Since: Commons Collections 3.1