Enum UpdateCheckResult

java.lang.Object
java.lang.Enum<UpdateCheckResult>
com.jeff_media.updatechecker.UpdateCheckResult
All Implemented Interfaces:
Serializable, Comparable<UpdateCheckResult>, java.lang.constant.Constable

public enum UpdateCheckResult extends Enum<UpdateCheckResult>
Represents whether a new version is available or not
  • Enum Constant Details

    • NEW_VERSION_AVAILABLE

      public static final UpdateCheckResult NEW_VERSION_AVAILABLE
      Result when a new version is available
    • RUNNING_LATEST_VERSION

      public static final UpdateCheckResult RUNNING_LATEST_VERSION
      Result when the plugin is already the latest version
    • UNKNOWN

      public static final UpdateCheckResult UNKNOWN
      Result when the update check failed, or the version could not be compared
  • Method Details

    • values

      public static UpdateCheckResult[] 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 UpdateCheckResult 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