@Test public void shouldReturnTrueIfCollectionHasElements(){ List<String> listWithElemements = new ArrayList<String>(); listWithElemements.add("1"); Assert.assertTrue(CollectionUtil.hasElements(listWithElemements)); }
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);  }