org.apache.commons.collections.functors
Class CloneTransformer

java.lang.Object
  |
  +--org.apache.commons.collections.functors.CloneTransformer
All Implemented Interfaces:
Serializable, Transformer

public class CloneTransformer
extends 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
Version:
$Revision: 1.2 $ $Date: 2004/01/14 21:43:09 $
Author:
Stephen Colebourne
See Also:
Serialized Form

Field Summary
static Transformer INSTANCE
          Singleton predicate instance
 
Method Summary
 Object transform(Object input)
          Do nothing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final Transformer INSTANCE
Singleton predicate instance

Method Detail

transform

public Object transform(Object input)
Do nothing

Specified by:
transform in interface Transformer
Parameters:
input - the object to be transformed
Returns:
a transformed object


Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.