FileDocCategorySizeDatePackage
GenericArray.javaAPI DocExample734Fri Nov 03 11:02:50 GMT 2006None

GenericArray

public class GenericArray extends Object

Fields Summary
Constructors Summary
Methods Summary
public static java.lang.ClassgetClass(T o)

	return (Class<T>)o.getClass();  // unchecked
    
public static java.lang.ClassgetComponentType(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 TnewInstance(T obj)

	return (T)obj.getClass().newInstance();  // unchecked