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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final Transformer INSTANCE
- Singleton predicate instance
transform
public Object transform(Object input)
- Do nothing
- Specified by:
transform
in interface Transformer
- Following copied from interface:
org.apache.commons.collections.Transformer
- Parameters:
input
- the object to be transformed- Returns:
- a transformed object
- Throws:
ClassCastException
- (runtime) if the input is the wrong classIllegalArgumentException
- (runtime) if the input is invalidFunctorException
- (runtime) if the transform cannot be completed
Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.