@Test public void toStringTest() { PrefixList prefixList = new PrefixList(null, ";"); assertEquals(prefixList.toString(), ""); prefixList = new PrefixList("", ";"); assertEquals(prefixList.toString(), ""); prefixList = new PrefixList(";", ";"); assertEquals(prefixList.toString(), ""); prefixList = new PrefixList(" a ; ; b ", ";"); assertEquals(prefixList.toString(), "a;b;"); prefixList = new PrefixList("a/b;c", ";"); assertEquals(prefixList.toString(), "a/b;c;"); prefixList = new PrefixList("a/b;c;", ";"); assertEquals(prefixList.toString(), "a/b;c;"); }
@Override public String toString() { StringBuilder s = new StringBuilder(); for (String prefix : mInnerList) { s.append(prefix).append(";"); } return s.toString(); }
PrefixList { @Override public String toString() { StringBuilder s = new StringBuilder(); for (String prefix : mInnerList) { s.append(prefix).append(";"); } return s.toString(); } }
PrefixList { @Override public String toString() { StringBuilder s = new StringBuilder(); for (String prefix : mInnerList) { s.append(prefix).append(";"); } return s.toString(); } PrefixList(List<String> prefixList);  PrefixList(String prefixes, String separator); }
PrefixList { @Override public String toString() { StringBuilder s = new StringBuilder(); for (String prefix : mInnerList) { s.append(prefix).append(";"); } return s.toString(); } PrefixList(List<String> prefixList);  PrefixList(String prefixes, String separator); ImmutableList<String> getList(); boolean inList(String path); boolean outList(String path); @Override String toString(); }
PrefixList { @Override public String toString() { StringBuilder s = new StringBuilder(); for (String prefix : mInnerList) { s.append(prefix).append(";"); } return s.toString(); } PrefixList(List<String> prefixList);  PrefixList(String prefixes, String separator); ImmutableList<String> getList(); boolean inList(String path); boolean outList(String path); @Override String toString();  }