org.apache.commons.collections.functors
public class PredicateTransformer extends Object implements Transformer, Serializable
Since: Commons Collections 3.0
Version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $
Constructor Summary | |
---|---|
PredicateTransformer(Predicate predicate)
Constructor that performs no validation.
|
Method Summary | |
---|---|
static Transformer | getInstance(Predicate predicate)
Factory method that performs validation.
|
Predicate | getPredicate()
Gets the predicate.
|
Object | transform(Object input)
Transforms the input to result by calling a predicate.
|
getInstance
if you want that.
Parameters: predicate the predicate to call, not null
Parameters: predicate the predicate to call, not null
Returns: the predicate
transformer
Throws: IllegalArgumentException if the predicate is null
Returns: the predicate
Since: Commons Collections 3.1
Parameters: input the input object to transform
Returns: the transformed result