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: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $
| 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