Package wtf.choco.arrows.utils
Enum UpdateChecker.UpdateReason
- All Implemented Interfaces:
Serializable
,Comparable<UpdateChecker.UpdateReason>
,java.lang.constant.Constable
- Enclosing class:
- UpdateChecker
public static enum UpdateChecker.UpdateReason extends Enum<UpdateChecker.UpdateReason>
A constant reason for the result of
UpdateChecker.UpdateResult
.-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description COULD_NOT_CONNECT
A successful connection to the Spigot API could not be established.INVALID_JSON
The JSON retrieved from Spigot was invalid or malformed.NEW_UPDATE
A new update is available for download on SpigotMC.UNAUTHORIZED_QUERY
A 401 error was returned by the Spigot API.UNKNOWN_ERROR
An unknown error occurred.UNRELEASED_VERSION
The version of the plugin installed on the server is greater than the one uploaded to SpigotMC's resources section.UNSUPPORTED_VERSION_SCHEME
The plugin uses an unsupported version scheme, therefore a proper comparison between versions could not be made.UP_TO_DATE
The plugin is up to date with the version released on SpigotMC's resources section. -
Method Summary
Modifier and Type Method Description static UpdateChecker.UpdateReason
valueOf(String name)
Returns the enum constant of this type with the specified name.static UpdateChecker.UpdateReason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NEW_UPDATE
A new update is available for download on SpigotMC. -
COULD_NOT_CONNECT
A successful connection to the Spigot API could not be established. -
INVALID_JSON
The JSON retrieved from Spigot was invalid or malformed. -
UNAUTHORIZED_QUERY
A 401 error was returned by the Spigot API. -
UNRELEASED_VERSION
The version of the plugin installed on the server is greater than the one uploaded to SpigotMC's resources section. -
UNKNOWN_ERROR
An unknown error occurred. -
UNSUPPORTED_VERSION_SCHEME
The plugin uses an unsupported version scheme, therefore a proper comparison between versions could not be made. -
UP_TO_DATE
The plugin is up to date with the version released on SpigotMC's resources section.
-
-
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
-