@Test public void testGetPurePath() { Path path = new Path("identifications.0.defaultClassification.kingdom"); assertEquals("01", 4, path.countElements()); path = path.getPurePath(); assertEquals("02", 3, path.countElements()); assertEquals("03", "identifications.defaultClassification.kingdom", path.toString()); }
public Path getPurePath() { ArrayList<String> list = new ArrayList<>(elems.length); for (String e : elems) { if (!isInteger(e)) { list.add(e); } } return new Path(list.toArray(new String[list.size()])); }
Path implements Comparable<Path> { public Path getPurePath() { ArrayList<String> list = new ArrayList<>(elems.length); for (String e : elems) { if (!isInteger(e)) { list.add(e); } } return new Path(list.toArray(new String[list.size()])); } }
Path implements Comparable<Path> { public Path getPurePath() { ArrayList<String> list = new ArrayList<>(elems.length); for (String e : elems) { if (!isInteger(e)) { list.add(e); } } return new Path(list.toArray(new String[list.size()])); } Path(); @JsonCreator  Path(String path);  Path(String[] elements);  Path(Path other); }
Path implements Comparable<Path> { public Path getPurePath() { ArrayList<String> list = new ArrayList<>(elems.length); for (String e : elems) { if (!isInteger(e)) { list.add(e); } } return new Path(list.toArray(new String[list.size()])); } Path(); @JsonCreator  Path(String path);  Path(String[] elements);  Path(Path other); Path element(int index); String getElement(int index); int countElements(); Path getPurePath(); Path append(String path); Path append(Path other); Path replace(int element, String newValue); Path shift(); @Override boolean equals(Object obj); @Override int hashCode(); @Override @JsonValue String toString(); @Override int compareTo(Path other); }
Path implements Comparable<Path> { public Path getPurePath() { ArrayList<String> list = new ArrayList<>(elems.length); for (String e : elems) { if (!isInteger(e)) { list.add(e); } } return new Path(list.toArray(new String[list.size()])); } Path(); @JsonCreator  Path(String path);  Path(String[] elements);  Path(Path other); Path element(int index); String getElement(int index); int countElements(); Path getPurePath(); Path append(String path); Path append(Path other); Path replace(int element, String newValue); Path shift(); @Override boolean equals(Object obj); @Override int hashCode(); @Override @JsonValue String toString(); @Override int compareTo(Path other);  }