Enum Class UpdateCheckResult
java.lang.Object
java.lang.Enum<UpdateCheckResult>
nl.pim16aap2.animatedarchitecture.core.util.updater.UpdateCheckResult
- All Implemented Interfaces:
Serializable, Comparable<UpdateCheckResult>, Constable
Represents the result status of checking for updates.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn unknown error occurred.The returned json was invalid.The current version is up-to-date.A newer version is available. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisError()Checks if the result is an error state.static UpdateCheckResultReturns the enum constant of this class with the specified name.static UpdateCheckResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ERROR
An unknown error occurred. -
INVALID_JSON
The returned json was invalid. -
UPDATE_AVAILABLE
A newer version is available. -
UP_TO_DATE
The current version is up-to-date.
-
-
Method Details
-
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
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 nameNullPointerException- 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.
-