@Test public void testIsNullOrEmptyCollection() { assertTrue(isNullOrEmpty((Collection) null)); assertTrue(isNullOrEmpty(Collections.emptyList())); ArrayList<Object> list = new ArrayList<>(); assertTrue(isNullOrEmpty(list)); list.add("testObject"); assertFalse(isNullOrEmpty(list)); }
public static boolean isNullOrEmpty(Collection collection) { return collection == null || collection.isEmpty(); }
ArrayUtils { public static boolean isNullOrEmpty(Collection collection) { return collection == null || collection.isEmpty(); } }
ArrayUtils { public static boolean isNullOrEmpty(Collection collection) { return collection == null || collection.isEmpty(); } private  ArrayUtils(); }
ArrayUtils { public static boolean isNullOrEmpty(Collection collection) { return collection == null || collection.isEmpty(); } private  ArrayUtils(); static boolean isNullOrEmpty(Collection collection); static boolean isNullOrEmpty(Map map); }
ArrayUtils { public static boolean isNullOrEmpty(Collection collection) { return collection == null || collection.isEmpty(); } private  ArrayUtils(); static boolean isNullOrEmpty(Collection collection); static boolean isNullOrEmpty(Map map);  }