@Override public boolean equals(Object that) { if (that instanceof DocCollection == false) return false; DocCollection other = (DocCollection) that; return super.equals(that) && Objects.equals(this.znode, other.znode) && this.znodeVersion == other.znodeVersion; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; Replica replica = (Replica) o; return name.equals(replica.name); }