Here you can find the source of isCollectionMapOrArray(Class> type)
public static boolean isCollectionMapOrArray(Class<?> type)
//package com.java2s; import java.util.*; public class Main { public static boolean isCollectionMapOrArray(Class<?> type) { if (type.isArray()) return true; if (Collection.class.isAssignableFrom(type)) return true; if (Map.class.isAssignableFrom(type)) return true; return false; }//from w ww . jav a2 s .c om }