@Override
    public int hashCode() {
        int result = from;
        result = 31 * result + to;
        return result;
    }
Compares the specified object with this set for equality.
Returns {@code true} if the specified object is also a set,
the two sets have the same size, and every member of the specified
set is contained in this set.

@param o object to be compared for equality with this set
@return {@code true} if the specified object is equal to this set
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/RangeSet.java