Here you can find the source of isCollectionOrArrayType(Class> typeToCheck)
private static boolean isCollectionOrArrayType(Class<?> typeToCheck)
//package com.java2s; import java.util.Collection; public class Main { private static boolean isCollectionOrArrayType(Class<?> typeToCheck) { return typeToCheck != null && (typeToCheck.isArray() || Collection.class.isAssignableFrom(typeToCheck)); }/*from w w w .j a v a 2s . c om*/ }