@Test void toListString() { assertEquals(singletonList("a"), toList("a")); assertEquals(asList("a", "b", "c"), toList("a,b,c")); assertEquals(singletonList(","), toList("\\,")); assertEquals(singletonList("a,b"), toList("a\\,b")); assertEquals(singletonList("\\"), toList("\\\\")); assertEquals(singletonList("a\\b"), toList("a\\\\b")); assertEquals(asList("a", "b", ""), toList("a,b,")); assertEquals(asList("a", "", "c"), toList("a,,c")); assertEquals(asList("", "b", "c"), toList(",b,c")); assertEquals(emptyList(), toList("")); assertNull(ListEscapeUtils.toList(null)); }
public static List<String> toList(String str) { return toList(str, DEFAULT_SEPARATOR, DEFAULT_ESCAPE_CHAR); }
ListEscapeUtils { public static List<String> toList(String str) { return toList(str, DEFAULT_SEPARATOR, DEFAULT_ESCAPE_CHAR); } }
ListEscapeUtils { public static List<String> toList(String str) { return toList(str, DEFAULT_SEPARATOR, DEFAULT_ESCAPE_CHAR); } private  ListEscapeUtils(); }
ListEscapeUtils { public static List<String> toList(String str) { return toList(str, 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 List<String> toList(String str) { return toList(str, 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; }