@Test public void testToList() { SymbolPath symbolPath = new SymbolPath("aaa::bbb::bob"); List<String> names = symbolPath.asList(); assertEquals("aaa", names.get(0)); assertEquals("bbb", names.get(1)); assertEquals("bob", names.get(2)); }
public List<String> asList() { List<String> list = new ArrayList<>(); addToList(list); return list; }
SymbolPath implements Comparable<SymbolPath> { public List<String> asList() { List<String> list = new ArrayList<>(); addToList(list); return list; } }
SymbolPath implements Comparable<SymbolPath> { public List<String> asList() { List<String> list = new ArrayList<>(); addToList(list); return list; } SymbolPath(String symbolPathString);  SymbolPath(String[] symbolPath);  SymbolPath(List<String> symbolList);  SymbolPath(Symbol symbol);  SymbolPath(Symbol symbol, boolean excludeLibrary);  SymbolPath(SymbolPath parent, String name); }
SymbolPath implements Comparable<SymbolPath> { public List<String> asList() { List<String> list = new ArrayList<>(); addToList(list); return list; } SymbolPath(String symbolPathString);  SymbolPath(String[] symbolPath);  SymbolPath(List<String> symbolList);  SymbolPath(Symbol symbol);  SymbolPath(Symbol symbol, boolean excludeLibrary);  SymbolPath(SymbolPath parent, String name); SymbolPath replaceInvalidChars(); String getName(); SymbolPath getParent(); String getParentPath(); String getPath(); SymbolPath append(SymbolPath path); @Override int hashCode(); @Override boolean equals(Object obj); List<String> asList(); String[] asArray(); @Override String toString(); @Override int compareTo(SymbolPath o); }
SymbolPath implements Comparable<SymbolPath> { public List<String> asList() { List<String> list = new ArrayList<>(); addToList(list); return list; } SymbolPath(String symbolPathString);  SymbolPath(String[] symbolPath);  SymbolPath(List<String> symbolList);  SymbolPath(Symbol symbol);  SymbolPath(Symbol symbol, boolean excludeLibrary);  SymbolPath(SymbolPath parent, String name); SymbolPath replaceInvalidChars(); String getName(); SymbolPath getParent(); String getParentPath(); String getPath(); SymbolPath append(SymbolPath path); @Override int hashCode(); @Override boolean equals(Object obj); List<String> asList(); String[] asArray(); @Override String toString(); @Override int compareTo(SymbolPath o);  }