@Test @SuppressWarnings("unlikely-arg-type") public void testEquals_01() { Path path0 = new Path("identifications.defaultClassification.kingdom"); assertTrue("01", path0.equals(path0)); Path path1 = new Path("identifications.defaultClassification.kingdom"); assertTrue("02", path0.equals(path1)); String str = "identifications.defaultClassification.kingdom"; assertFalse("03", path0.equals(str)); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj.getClass() == Path.class) return Arrays.deepEquals(this.elems, ((Path) obj).elems); return false; }
Path implements Comparable<Path> { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj.getClass() == Path.class) return Arrays.deepEquals(this.elems, ((Path) obj).elems); return false; } }
Path implements Comparable<Path> { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj.getClass() == Path.class) return Arrays.deepEquals(this.elems, ((Path) obj).elems); return false; } Path(); @JsonCreator  Path(String path);  Path(String[] elements);  Path(Path other); }
Path implements Comparable<Path> { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj.getClass() == Path.class) return Arrays.deepEquals(this.elems, ((Path) obj).elems); return false; } 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 public boolean equals(Object obj) { if (this == obj) return true; if (obj.getClass() == Path.class) return Arrays.deepEquals(this.elems, ((Path) obj).elems); return false; } 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);  }