| |
|
| java.lang.Object org.apache.commons.collections.functors.TransformerPredicate
TransformerPredicate | final public class TransformerPredicate implements Predicate,Serializable(Code) | | Predicate implementation that returns the result of a transformer.
since: Commons Collections 3.0 version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $ author: Stephen Colebourne |
TransformerPredicate | public TransformerPredicate(Transformer transformer)(Code) | | Constructor that performs no validation.
Use getInstance if you want that.
Parameters: transformer - the transformer to decorate |
evaluate | public boolean evaluate(Object object)(Code) | | Evaluates the predicate returning the result of the decorated transformer.
Parameters: object - the input object true if decorated transformer returns Boolean.TRUE throws: FunctorException - if the transformer returns an invalid type |
getTransformer | public Transformer getTransformer()(Code) | | Gets the transformer.
the transformer since: Commons Collections 3.1 |
|
|
|