@Test public void testImplodeCollectionOfT() { List<Integer> ints = Arrays.asList(1, 2, 3, 4, 5, 6, 7); List<String> strings = Arrays.asList("Test1", "Test 2", "Test 3", "Test 4"); String expectedResult = "1,2,3,4,5,6,7"; String expectedResult_1 = "Test1,Test 2,Test 3,Test 4"; String actualResult = CollectionUtil.implode(ints); String actualResult_1 = CollectionUtil.implode(strings); assertNotNull(actualResult); assertNotNull(actualResult_1); assertEquals(expectedResult, actualResult); assertEquals(actualResult_1, expectedResult_1); }
public static <T> String implode(Collection<T> collection) { return implode(collection, ",", new Stringifier<T>() { public String execute(T obj, Object... args) { return obj.toString(); } }); }
CollectionUtil { public static <T> String implode(Collection<T> collection) { return implode(collection, ",", new Stringifier<T>() { public String execute(T obj, Object... args) { return obj.toString(); } }); } }
CollectionUtil { public static <T> String implode(Collection<T> collection) { return implode(collection, ",", new Stringifier<T>() { public String execute(T obj, Object... args) { return obj.toString(); } }); }  }
CollectionUtil { public static <T> String implode(Collection<T> collection) { return implode(collection, ",", new Stringifier<T>() { public String execute(T obj, Object... args) { return obj.toString(); } }); }  static boolean isEmpty(Collection<?> collection); static boolean hasElements(Collection<?> collection); static List<String> stringify(Collection<T> collection); static List<String> stringify(Collection<T> collection, Stringifier<T> stringifier,
			Object... options); static String implode(Collection<T> collection); static String implode(Collection<T> collection, String separator); static String implode(Collection<T> collection, Stringifier<T> stringifier,
			Object... options); static String implode(Collection<T> collection, String sep,
			Stringifier<T> stringifier, Object... options); }
CollectionUtil { public static <T> String implode(Collection<T> collection) { return implode(collection, ",", new Stringifier<T>() { public String execute(T obj, Object... args) { return obj.toString(); } }); }  static boolean isEmpty(Collection<?> collection); static boolean hasElements(Collection<?> collection); static List<String> stringify(Collection<T> collection); static List<String> stringify(Collection<T> collection, Stringifier<T> stringifier,
			Object... options); static String implode(Collection<T> collection); static String implode(Collection<T> collection, String separator); static String implode(Collection<T> collection, Stringifier<T> stringifier,
			Object... options); static String implode(Collection<T> collection, String sep,
			Stringifier<T> stringifier, Object... options);  }