Here you can find the source of isArrayOrCollection(Object paramObj)
public static boolean isArrayOrCollection(Object paramObj)
//package com.java2s; //License from project: Apache License import java.util.Collection; public class Main { public static boolean isArrayOrCollection(Object paramObj) { if (paramObj == null) { return false; }//from www .j a v a2 s .c o m if (paramObj instanceof Collection || paramObj.getClass().isArray()) { return true; } return false; } }