org.apache.commons.collections.functors
public final class NullIsTruePredicate extends Object implements Predicate, PredicateDecorator, Serializable
Since: Commons Collections 3.0
Version: $Revision: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $
Constructor Summary | |
---|---|
NullIsTruePredicate(Predicate predicate)
Constructor that performs no validation.
|
Method Summary | |
---|---|
boolean | evaluate(Object object)
Evaluates the predicate returning the result of the decorated predicate
once a null check is performed.
|
static Predicate | getInstance(Predicate predicate)
Factory to create the null true 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 decorated predicate returns true or input is null
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