public boolean equals(Object obj) {if (this == obj) return true;if (obj == null) return false;if (getClass() != obj.getClass()) return false;PostingsAndFreq other = (PostingsAndFreq) obj;if (position != other.position) return false;if (terms == null) return other.terms == null;return Arrays.equals(terms, other.terms);}

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);}
