org.apache.commons.collections.functors
public class FactoryTransformer 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 | |
---|---|
FactoryTransformer(Factory factory)
Constructor that performs no validation.
|
Method Summary | |
---|---|
Factory | getFactory()
Gets the factory.
|
static Transformer | getInstance(Factory factory)
Factory method that performs validation.
|
Object | transform(Object input)
Transforms the input by ignoring the input and returning the result of
calling the decorated factory.
|
getInstance
if you want that.
Parameters: factory the factory to call, not null
Returns: the factory
Since: Commons Collections 3.1
Parameters: factory the factory to call, not null
Returns: the factory
transformer
Throws: IllegalArgumentException if the factory is null
Parameters: input the input object to transform
Returns: the transformed result