Override hashCode() and equals().