Clone is performed using PrototypeFactory.prototypeFactory(input).create().
Warning
from v4.1 onwards this class will not be serializable anymore in order to prevent potential remote code execution exploits. Please refer to COLLECTIONS-580 for more details.
| Modifier and Type | Field and Description |
|---|---|
| public static final Transformer | INSTANCE
Singleton predicate instance |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < the type of the objects to be cloned T> Transformer | |
| public T | Returns: the transformed resultthe input object to transform input)Implements org. |
| INSTANCE | back to summary |
|---|---|
| public static final Transformer<I, O> INSTANCE Singleton predicate instance
| |
| CloneTransformer | back to summary |
|---|---|
| private CloneTransformer() Constructor. | |
| cloneTransformer | back to summary |
|---|---|
| public static <T> Transformer Factory returning the singleton instance.
| |
| transform | back to summary |
|---|---|
| public T transform(final T input) Implements org. Transforms the input to result by cloning it.
| |