public class CloneTransformer extends Object implements Transformer, Serializable
Clone is performed using PrototypeFactory.getInstance(input).create().
| Modifier and Type | Field and Description |
|---|---|
static Transformer |
INSTANCE
Singleton predicate instance
|
| Modifier and Type | Method and Description |
|---|---|
static Transformer |
getInstance()
Factory returning the singleton instance.
|
Object |
transform(Object input)
Transforms the input to result by cloning it.
|
public static final Transformer INSTANCE
public static Transformer getInstance()
public Object transform(Object input)
transform in interface Transformerinput - the input object to transformCopyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.