Enum ApiVersion.Status

java.lang.Object
java.lang.Enum<ApiVersion.Status>
privbot.api.ApiVersion.Status
All Implemented Interfaces:
Serializable, Comparable<ApiVersion.Status>, java.lang.constant.Constable
Enclosing class:
ApiVersion

public static enum ApiVersion.Status extends Enum<ApiVersion.Status>
Since:
1.0.0
  • Enum Constant Details

    • COMPATIBLE

      public static final ApiVersion.Status COMPATIBLE
      Same major, plugin minor not newer than the runtime's.
    • LEGACY_FIRST_PARTY

      public static final ApiVersion.Status LEGACY_FIRST_PARTY
      No declared version, first-party channel: allowed.
    • LEGACY_REFUSED

      public static final ApiVersion.Status LEGACY_REFUSED
      No declared version on any other channel: refused.
    • MAJOR_MISMATCH

      public static final ApiVersion.Status MAJOR_MISMATCH
      Different major version: refused.
    • NEEDS_NEWER_RUNTIME

      public static final ApiVersion.Status NEEDS_NEWER_RUNTIME
      Plugin built against a newer minor than this runtime provides: refused.
    • MALFORMED

      public static final ApiVersion.Status MALFORMED
      A version string that does not parse: refused, never guessed.
  • Method Details

    • values

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

      public static ApiVersion.Status valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • allowed

      public boolean allowed()