Enum Class ApiVersion.Compatibility

java.lang.Object
java.lang.Enum<ApiVersion.Compatibility>
dev.itsharshxd.zentrix.api.ApiVersion.Compatibility
All Implemented Interfaces:
Serializable, Comparable<ApiVersion.Compatibility>, Constable
Enclosing class:
ApiVersion

public static enum ApiVersion.Compatibility extends Enum<ApiVersion.Compatibility>
How a required version relates to the installed one.
  • Enum Constant Details

    • COMPATIBLE

      public static final ApiVersion.Compatibility COMPATIBLE
      The installed API offers everything the required version promises.
    • OUTDATED

      public static final ApiVersion.Compatibility OUTDATED
      Same major version, but older than required: update Zentrix.
    • INCOMPATIBLE_MAJOR

      public static final ApiVersion.Compatibility INCOMPATIBLE_MAJOR
      A different major version: the contracts are not compatible in either direction.
    • MALFORMED

      public static final ApiVersion.Compatibility MALFORMED
      One of the two strings is not a version.
  • 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
    • isCompatible

      public boolean isCompatible()
      Whether the addon may run.