@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Struct)) return false; if (!super.equals(o)) return false; Struct struct = (Struct) o; return values.equals(struct.values); }
/** Returns true if the argument is a document which has the same set of values */ @Override public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof Document)) return false; Document other = (Document) o; return (super.equals(o) && docId.equals(other.docId) && header.equals(other.header) && body.equals(other.body)); }