Class SupportedVersionRange

java.lang.Object
org.apache.kafka.clients.admin.SupportedVersionRange

public class SupportedVersionRange extends Object
Represents a range of versions that a particular broker supports for some feature.
  • Constructor Details

    • SupportedVersionRange

      public SupportedVersionRange(short minVersion, short maxVersion)
      Raises an exception unless the following conditions are met: 0 <= minVersion <= maxVersion.
      Parameters:
      minVersion - The minimum version value.
      maxVersion - The maximum version value.
      Throws:
      IllegalArgumentException - Raised when the condition described above is not met.
  • Method Details

    • minVersion

      public short minVersion()
    • maxVersion

      public short maxVersion()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object