org.clazzes.util.reflect.impl
Class CloneableCloner<T>

java.lang.Object
  extended by org.clazzes.util.reflect.impl.CloneableCloner<T>
All Implemented Interfaces:
Cloner<T>

public class CloneableCloner<T>
extends java.lang.Object
implements Cloner<T>

A cloner for

Author:
wglas

Constructor Summary
CloneableCloner(java.lang.Class<T> clazz)
           
 
Method Summary
 T clone(T o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloneableCloner

public CloneableCloner(java.lang.Class<T> clazz)
                throws java.lang.SecurityException,
                       java.lang.NoSuchMethodException
Throws:
java.lang.SecurityException
java.lang.NoSuchMethodException
Method Detail

clone

public T clone(T o)
        throws java.lang.CloneNotSupportedException
Specified by:
clone in interface Cloner<T>
Parameters:
o - A POJO object to clone.
Returns:
A clone of the given object.
Throws:
java.lang.CloneNotSupportedException - If this instance cannot be cloned.


Copyright © 2009. All Rights Reserved.