@Test public void testToString() { String[] elements = new String[] { "identifications", "0", "defaultClassification", "kingdom" }; Path path = new Path(elements); assertEquals("01", "identifications.0.defaultClassification.kingdom", path.toString()); }
@Override @JsonValue public String toString() { if (str == null) { StringBuilder sb = new StringBuilder(elems.length << 4); for (String e : elems) { if (sb.length() != 0) sb.append('.'); sb.append(e); } return (str = sb.toString()); } return str; }
Path implements Comparable<Path> { @Override @JsonValue public String toString() { if (str == null) { StringBuilder sb = new StringBuilder(elems.length << 4); for (String e : elems) { if (sb.length() != 0) sb.append('.'); sb.append(e); } return (str = sb.toString()); } return str; } }
Path implements Comparable<Path> { @Override @JsonValue public String toString() { if (str == null) { StringBuilder sb = new StringBuilder(elems.length << 4); for (String e : elems) { if (sb.length() != 0) sb.append('.'); sb.append(e); } return (str = sb.toString()); } return str; } Path(); @JsonCreator  Path(String path);  Path(String[] elements);  Path(Path other); }
Path implements Comparable<Path> { @Override @JsonValue public String toString() { if (str == null) { StringBuilder sb = new StringBuilder(elems.length << 4); for (String e : elems) { if (sb.length() != 0) sb.append('.'); sb.append(e); } return (str = sb.toString()); } return str; } 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> { @Override @JsonValue public String toString() { if (str == null) { StringBuilder sb = new StringBuilder(elems.length << 4); for (String e : elems) { if (sb.length() != 0) sb.append('.'); sb.append(e); } return (str = sb.toString()); } return str; } 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);  }