@Test public void shouldReturnFalseIfCollectionIsEmpty(){ List<String> emptyList = new ArrayList<String>(); Assert.assertFalse(CollectionUtil.hasElements(emptyList)); }
public static boolean hasElements(Collection<?> collection){ return collection != null && !collection.isEmpty(); }
CollectionUtil { public static boolean hasElements(Collection<?> collection){ return collection != null && !collection.isEmpty(); } }
CollectionUtil { public static boolean hasElements(Collection<?> collection){ return collection != null && !collection.isEmpty(); }  }
CollectionUtil { public static boolean hasElements(Collection<?> collection){ return collection != null && !collection.isEmpty(); }  static boolean isNullOrEmpty(Collection<?> collection); static boolean hasElements(Collection<?> collection); }
CollectionUtil { public static boolean hasElements(Collection<?> collection){ return collection != null && !collection.isEmpty(); }  static boolean isNullOrEmpty(Collection<?> collection); static boolean hasElements(Collection<?> collection);  }