public short maxVersion() {
        return 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