Enum Class UpdateCheckResult

java.lang.Object
java.lang.Enum<UpdateCheckResult>
nl.pim16aap2.animatedarchitecture.core.util.updater.UpdateCheckResult
All Implemented Interfaces:
Serializable, Comparable<UpdateCheckResult>, Constable

public enum UpdateCheckResult extends Enum<UpdateCheckResult>
Represents the result status of checking for updates.
  • Enum Constant Details

    • ERROR

      public static final UpdateCheckResult ERROR
      An unknown error occurred.
    • INVALID_JSON

      public static final UpdateCheckResult INVALID_JSON
      The returned json was invalid.
    • UPDATE_AVAILABLE

      public static final UpdateCheckResult UPDATE_AVAILABLE
      A newer version is available.
    • UP_TO_DATE

      public static final UpdateCheckResult UP_TO_DATE
      The current version is up-to-date.
  • Method Details

    • values

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

      public boolean isError()
      Checks if the result is an error state.
      Returns:
      True if this result is an error state.