@Test void toStringList() { assertEquals("a", ListEscapeUtils.toString(singletonList("a"))); assertEquals("a,b,c", ListEscapeUtils.toString(asList("a", "b", "c"))); assertEquals("\\,", ListEscapeUtils.toString(singletonList(","))); assertEquals("a\\,b", ListEscapeUtils.toString(singletonList("a,b"))); assertEquals("\\\\", ListEscapeUtils.toString(singletonList("\\"))); assertEquals("a\\\\b", ListEscapeUtils.toString(singletonList("a\\b"))); assertEquals("a,b,", ListEscapeUtils.toString(asList("a", "b", ""))); assertEquals("a,,c", ListEscapeUtils.toString(asList("a", "", "c"))); assertEquals(",b,c", ListEscapeUtils.toString(asList("", "b", "c"))); assertEquals("a,b,", ListEscapeUtils.toString(asList("a", "b", null))); assertEquals("a,,c", ListEscapeUtils.toString(asList("a", null, "c"))); assertEquals(",b,c", ListEscapeUtils.toString(asList(null, "b", "c"))); assertEquals("", ListEscapeUtils.toString(emptyList()), ""); assertNull(ListEscapeUtils.toString(null)); }
public static String toString(List<?> list) { return toString(list, DEFAULT_SEPARATOR, DEFAULT_ESCAPE_CHAR); }
ListEscapeUtils { public static String toString(List<?> list) { return toString(list, DEFAULT_SEPARATOR, DEFAULT_ESCAPE_CHAR); } }
ListEscapeUtils { public static String toString(List<?> list) { return toString(list, DEFAULT_SEPARATOR, DEFAULT_ESCAPE_CHAR); } private  ListEscapeUtils(); }
ListEscapeUtils { public static String toString(List<?> list) { return toString(list, DEFAULT_SEPARATOR, DEFAULT_ESCAPE_CHAR); } private  ListEscapeUtils(); static String toString(List<?> list); static String toString(List<?> list, char sep, char esc); static List<String> toList(String str); static List<String> toList(String str, char sep, char esc); }
ListEscapeUtils { public static String toString(List<?> list) { return toString(list, DEFAULT_SEPARATOR, DEFAULT_ESCAPE_CHAR); } private  ListEscapeUtils(); static String toString(List<?> list); static String toString(List<?> list, char sep, char esc); static List<String> toList(String str); static List<String> toList(String str, char sep, char esc); static final char DEFAULT_SEPARATOR; static final char DEFAULT_ESCAPE_CHAR; }