@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof SinglePath) { SinglePath that = (SinglePath)obj; return this.fieldName.equals(that.fieldName); } if (obj instanceof Path) { Path that = (Path)obj; if (this.size() != that.size()) return false; return this.fieldName.equals(that.get(0)); } return false; }
@Override public int compareTo( Path that ) { if (that == this) return 0; int diff = this.size() - that.size(); if (diff != 0) return diff; return this.fieldName.compareTo(that.get(0)); }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof SinglePath) { SinglePath that = (SinglePath)obj; return this.fieldName.equals(that.fieldName); } if (obj instanceof Path) { Path that = (Path)obj; if (this.size() != that.size()) return false; return this.fieldName.equals(that.get(0)); } return false; }
@Override public int compareTo( Path that ) { if (that == this) return 0; int diff = this.size() - that.size(); if (diff != 0) return diff; return this.fieldName.compareTo(that.get(0)); }
Path path = conversion.getPath(); assert path.size() > level; String segment = path.get(level); if (path.size() == nextLevel) {
Path path = conversion.getPath(); assert path.size() > level; String segment = path.get(level); if (path.size() == nextLevel) {