Package dev.itsharshxd.zentrix.api
Enum Class ApiVersion.Compatibility
- All Implemented Interfaces:
Serializable,Comparable<ApiVersion.Compatibility>,Constable
- Enclosing class:
ApiVersion
How a required version relates to the installed one.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe installed API offers everything the required version promises.A different major version: the contracts are not compatible in either direction.One of the two strings is not a version.Same major version, but older than required: update Zentrix. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the addon may run.static ApiVersion.CompatibilityReturns the enum constant of this class with the specified name.static ApiVersion.Compatibility[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMPATIBLE
The installed API offers everything the required version promises. -
OUTDATED
Same major version, but older than required: update Zentrix. -
INCOMPATIBLE_MAJOR
A different major version: the contracts are not compatible in either direction. -
MALFORMED
One of the two strings is not a 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
-
isCompatible
public boolean isCompatible()Whether the addon may run.
-