1 package org.testng.collections; 2 3 import java.util.Collection; 4 import java.util.Map; 5 6 public final class CollectionUtils { 7 CollectionUtils()8 private CollectionUtils() {} 9 hasElements(Collection<?> c)10 public static boolean hasElements(Collection<?> c) { 11 return c != null && ! c.isEmpty(); 12 } 13 hasElements(Map<?, ?> c)14 public static boolean hasElements(Map<?, ?> c) { 15 return c != null && ! c.isEmpty(); 16 } 17 18 } 19