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

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

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

A cloner for arrays.

Author:
wglas

Constructor Summary
ArrayCloner(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

ArrayCloner

public ArrayCloner(java.lang.Class<T> clazz)
Parameters:
clazz - The array class.
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.