| java.lang.Object org.apache.commons.collections.functors.PredicateTransformer
PredicateTransformer | public class PredicateTransformer implements Transformer,Serializable(Code) | | Transformer implementation that calls a Predicate using the input object
and then returns the input.
since: Commons Collections 3.0 version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $ author: Stephen Colebourne |
PredicateTransformer | public PredicateTransformer(Predicate predicate)(Code) | | Constructor that performs no validation.
Use getInstance if you want that.
Parameters: predicate - the predicate to call, not null |
getInstance | public static Transformer getInstance(Predicate predicate)(Code) | | Factory method that performs validation.
Parameters: predicate - the predicate to call, not null the predicate transformer throws: IllegalArgumentException - if the predicate is null |
getPredicate | public Predicate getPredicate()(Code) | | Gets the predicate.
the predicate since: Commons Collections 3.1 |
transform | public Object transform(Object input)(Code) | | Transforms the input to result by calling a predicate.
Parameters: input - the input object to transform the transformed result |
|
|