org.apache.commons.collections.functors
public class CloneTransformer extends Object implements Transformer, Serializable
Clone is performed using PrototypeFactory.getInstance(input).create().
Since: Commons Collections 3.0
Version: $Revision: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $
| Field Summary | |
|---|---|
| static Transformer | INSTANCE Singleton predicate instance |
| Method Summary | |
|---|---|
| static Transformer | getInstance()
Factory returning the singleton instance.
|
| Object | transform(Object input)
Transforms the input to result by cloning it.
|
Returns: the singleton instance
Since: Commons Collections 3.1
Parameters: input the input object to transform
Returns: the transformed result