Package com.comphenix.protocol.updater
Enum Class Updater.UpdateType
- All Implemented Interfaces:
Serializable,Comparable<Updater.UpdateType>,Constable
- Enclosing class:
Updater
Allows the dev to specify the type of update that will be run.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRun a version check, and then if the file is out of date, download the newest version.Get information about the version and the download size, but don't actually download anything.Don't run a version check, just find the latest update and download it. -
Method Summary
Modifier and TypeMethodDescriptionstatic Updater.UpdateTypeReturns the enum constant of this class with the specified name.static Updater.UpdateType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Run a version check, and then if the file is out of date, download the newest version. -
NO_VERSION_CHECK
Don't run a version check, just find the latest update and download it. -
NO_DOWNLOAD
Get information about the version and the download size, but don't actually download anything.
-
-
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
-