Enum Class UpdateChecker.Result

java.lang.Object
java.lang.Enum<UpdateChecker.Result>
dev.demeng.pluginbase.UpdateChecker.Result
All Implemented Interfaces:
Serializable, Comparable<UpdateChecker.Result>, Constable
Enclosing class:
UpdateChecker

public static enum UpdateChecker.Result extends Enum<UpdateChecker.Result>
The result of an update check.
  • Enum Constant Details

    • UP_TO_DATE

      public static final UpdateChecker.Result UP_TO_DATE
      The plugin version matches the one on the resource.
    • OUTDATED

      public static final UpdateChecker.Result OUTDATED
      The plugin version does not match the one on the resource.
    • ERROR

      public static final UpdateChecker.Result ERROR
      There was an error whilst checking for updates.
  • Method Details

    • values

      public static UpdateChecker.Result[] 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 UpdateChecker.Result 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