StringListType implements Command, State { @Override public String toFullString() { return typeDetails.stream().map(s -> s.replace(DELIMITER, ESCAPED_DELIMITER)) .collect(Collectors.joining(DELIMITER)); } StringListType();  StringListType(List<String> rows);  StringListType(StringType... rows);  StringListType(String... rows);  StringListType(String serialized); String getValue(final int index); @Override String format(String pattern); @Override String toString(); @Override String toFullString(); static StringListType valueOf(String value); @Override int hashCode(); @Override boolean equals(@Nullable Object obj); static final String DELIMITER; static final String ESCAPED_DELIMITER; static final String REGEX_SPLITTER; }
@Test public void testToFullString() { StringListType abc = new StringListType("a", "b", "c"); String fullString = abc.toFullString(); assertEquals("a,b,c", fullString); }