Here you can find the source of arrayOfClassType(T... array)
@SafeVarargs public static <T> Class<?>[] arrayOfClassType(T... array)
//package com.java2s; //License from project: Apache License public class Main { @SafeVarargs public static <T> Class<?>[] arrayOfClassType(T... array) { Class<?>[] clazzs = new Class<?>[array.length]; for (int i = 0; i < array.length; i++) { clazzs[i] = array[i].getClass(); }//from w w w . j a va 2 s.c o m return clazzs; } }