@Override
    public boolean equals(Object other) {
        if (this == other) {
            return true;
        }

        if (other == null || getClass() != other.getClass()) {
            return false;
        }

        final SupportedVersionRange that = (SupportedVersionRange) other;
        return this.minVersion == that.minVersion && this.maxVersion == that.maxVersion;
    }
Raises an exception unless the following conditions are met:
 0 &lt;= minVersion &lt;= maxVersion.

@param minVersion           The minimum version value.
@param maxVersion           The maximum version value.

@throws IllegalArgumentException   Raised when the condition described above is not met.
clients/src/main/java/org/apache/kafka/clients/admin/SupportedVersionRange.java