如果要具有未知类型的数组,请使用泛型:
public <T> T[] getAttribArray(Class<T> repeatingGrpClass) { //get the attribute based on the class (which you might get based on the enum for example) return (T[]) getAttrib( repeatingGrpClass.getName() ); //note that you might want to use the class object instead of its name here }


