org.apache.commons.collections.functors
public final class TransformerPredicate extends Object implements Predicate, Serializable
Since: Commons Collections 3.0
Version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $
Constructor Summary | |
---|---|
TransformerPredicate(Transformer transformer)
Constructor that performs no validation.
|
Method Summary | |
---|---|
boolean | evaluate(Object object)
Evaluates the predicate returning the result of the decorated transformer.
|
static Predicate | getInstance(Transformer transformer)
Factory to create the predicate.
|
Transformer | getTransformer()
Gets the transformer.
|
getInstance
if you want that.
Parameters: transformer the transformer to decorate
Parameters: object the input object
Returns: true if decorated transformer returns Boolean.TRUE
Throws: FunctorException if the transformer returns an invalid type
Parameters: transformer the transformer to decorate
Returns: the predicate
Throws: IllegalArgumentException if the transformer is null
Returns: the transformer
Since: Commons Collections 3.1