Package me.croabeast.common.updater
Enum Class Reason
- All Implemented Interfaces:
Serializable,Comparable<Reason>,java.lang.constant.Constable
Possible outcomes of an update check, describing why no update may be available
or why an error occurred.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCould not establish a connection to the API endpoint.The returned JSON was malformed or missing expected fields.A newer version is available remotely.The API responded with HTTP 401 Unauthorized.Some other I/O or parsing error occurred.The locally installed version is ahead of the remote version.The chosenVersionSchemecould not compare the two version strings.The plugin is already at the latest version. -
Method Summary
-
Enum Constant Details
-
NEW_UPDATE
A newer version is available remotely. -
COULD_NOT_CONNECT
Could not establish a connection to the API endpoint. -
INVALID_JSON
The returned JSON was malformed or missing expected fields. -
UNAUTHORIZED_QUERY
The API responded with HTTP 401 Unauthorized. -
UNRELEASED_VERSION
The locally installed version is ahead of the remote version. -
UNKNOWN_ERROR
Some other I/O or parsing error occurred. -
UNSUPPORTED_VERSION_SCHEME
The chosenVersionSchemecould not compare the two version strings. -
UP_TO_DATE
The plugin is already at the latest version.
-
-
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
-