⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.collections.functors

Class CloneTransformer

java.lang.Object
|
+--org.apache.commons.collections.functors.CloneTransformer

All Implemented Interfaces:
Transformer, Serializable


public class CloneTransformer
extends java.lang.Object
implements Transformer, Serializable

Transformer implementation that returns a clone of the input object.

Clone is performed using PrototypeFactory.getInstance(input).create().

Since:
Commons Collections 3.0
Author:
Stephen Colebourne

Field Summary

static Transformer

INSTANCE

Singleton predicate instance

Method Summary

Object

transform(Object input)

Do nothing

Field Details

INSTANCE

public static final Transformer INSTANCE

Singleton predicate instance

Method Details

transform

public Object transform(Object input)

Do nothing

Parameters:
input