Enum Class ApiVersion.Compatibility

java.lang.Object
java.lang.Enum<ApiVersion.Compatibility>
org.geysermc.api.util.ApiVersion.Compatibility
All Implemented Interfaces:
Serializable, Comparable<ApiVersion.Compatibility>, Constable
Enclosing class:
ApiVersion

public static enum ApiVersion.Compatibility extends Enum<ApiVersion.Compatibility>
Describes compatibility between the current version of an API and a requested version
  • Enum Constant Details

  • Method Details

    • values

      public static ApiVersion.Compatibility[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ApiVersion.Compatibility valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • cause

      public String cause()