Java Object Clone cloneClass(Class clazz)

Here you can find the source of cloneClass(Class clazz)

Description

clone Class

License

Apache License

Declaration

public static Class<?> cloneClass(Class<?> clazz) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static Class<?> cloneClass(Class<?> clazz) {
        Class<?> newClazz = null;
        try {/*from   w w  w. ja v  a  2  s  .  c o m*/
            newClazz = Class.forName(clazz.getName());
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
        return newClazz;
    }
}

Related

  1. clone(Object original)
  2. clone(Object value)
  3. clone(String name, String type, int pos)
  4. clone(T array)
  5. clone_obj_array(Object source)
  6. cloneCloneNotSupportedObject(final T obj, final boolean deep)
  7. cloneShort(Short sOriginal)
  8. cloneStackTrace(Throwable aException)
  9. copyIfNecessary(final Object val)