Enum ApiVersion.Status
- All Implemented Interfaces:
Serializable,Comparable<ApiVersion.Status>,java.lang.constant.Constable
- Enclosing class:
ApiVersion
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSame major, plugin minor not newer than the runtime's.No declared version, first-party channel: allowed.No declared version on any other channel: refused.Different major version: refused.A version string that does not parse: refused, never guessed.Plugin built against a newer minor than this runtime provides: refused. -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowed()static ApiVersion.StatusReturns the enum constant of this type with the specified name.static ApiVersion.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COMPATIBLE
Same major, plugin minor not newer than the runtime's. -
LEGACY_FIRST_PARTY
No declared version, first-party channel: allowed. -
LEGACY_REFUSED
No declared version on any other channel: refused. -
MAJOR_MISMATCH
Different major version: refused. -
NEEDS_NEWER_RUNTIME
Plugin built against a newer minor than this runtime provides: refused. -
MALFORMED
A version string that does not parse: refused, never guessed.
-
-
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
-
allowed
public boolean allowed()
-