text: public override bool Equals(object obj){if (this == obj){return true;}if (obj == null){return false;}if (this.GetType() != obj.GetType()){return false;}PostingsAndFreq other = (PostingsAndFreq)obj;if (docFreq != other.docFreq){return false;}if (position != other.position){return false;}if (terms == null){return other.terms == null;}return Arrays.Equals(terms, other.terms);}