Package com.jeff_media.updatechecker
Enum UpdateCheckResult
- All Implemented Interfaces:
Serializable
,Comparable<UpdateCheckResult>
,java.lang.constant.Constable
Represents whether a new version is available or not
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionResult when a new version is availableResult when the plugin is already the latest versionResult when the update check failed, or the version could not be compared -
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateCheckResult
Returns the enum constant of this type with the specified name.static UpdateCheckResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NEW_VERSION_AVAILABLE
Result when a new version is available -
RUNNING_LATEST_VERSION
Result when the plugin is already the latest version -
UNKNOWN
Result when the update check failed, or the version could not be compared
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-