| java.lang.Object org.apache.commons.collections.functors.TransformedPredicate
TransformedPredicate | final public class TransformedPredicate implements Predicate,PredicateDecorator,Serializable(Code) | | Predicate implementation that transforms the given object before invoking
another Predicate .
since: Commons Collections 3.1 version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $ author: Alban Peignier author: Stephen Colebourne |
TransformedPredicate | public TransformedPredicate(Transformer transformer, Predicate predicate)(Code) | | Constructor that performs no validation.
Use getInstance if you want that.
Parameters: transformer - the transformer to use Parameters: predicate - the predicate to decorate |
evaluate | public boolean evaluate(Object object)(Code) | | Evaluates the predicate returning the result of the decorated predicate
once the input has been transformed
Parameters: object - the input object which will be transformed true if decorated predicate returns true |
getInstance | public static Predicate getInstance(Transformer transformer, Predicate predicate)(Code) | | Factory to create the predicate.
Parameters: transformer - the transformer to call Parameters: predicate - the predicate to call with the result of the transform the predicate throws: IllegalArgumentException - if the transformer or the predicate is null |
getPredicates | public Predicate[] getPredicates()(Code) | | Gets the predicate being decorated.
the predicate as the only element in an array since: Commons Collections 3.1 |
getTransformer | public Transformer getTransformer()(Code) | | Gets the transformer in use.
the transformer |
|
|