@Override public boolean equals(Object o) { if (o instanceof PairIntWritable) { PairIntWritable tp = (PairIntWritable) o; return first.equals(tp.first) && second.equals(tp.second); } return false; }