Methods Summary |
---|
public static java.lang.Class | getClass(T o)
return (Class<T>)o.getClass(); // unchecked
|
public static java.lang.Class | getComponentType(T[] a)
return (Class<T>)a.getClass().getComponentType(); // unchecked
|
public static T[] | newInstance(java.lang.Class c, int size)
return (T[])Array.newInstance(c, size); // unchecked
|
public static T[] | newInstance(T[] arr, int size)
return newInstance(getComponentType(arr), size);
|
public static T | newInstance(T obj)
return (T)obj.getClass().newInstance(); // unchecked
|