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