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