Package org.geysermc.api.util
Enum ApiVersion.Compatibility
- java.lang.Object
-
- java.lang.Enum<ApiVersion.Compatibility>
-
- org.geysermc.api.util.ApiVersion.Compatibility
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ApiVersion.Compatibility>
- Enclosing class:
- ApiVersion
public static enum ApiVersion.Compatibility extends java.lang.Enum<ApiVersion.Compatibility>
Describes compatibility between the current version of an API and a requested version
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPATIBLEHUMAN_DIFFERMAJOR_TOO_NEWMINOR_TOO_NEW
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringcause()static ApiVersion.CompatibilityvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ApiVersion.Compatibility[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMPATIBLE
public static final ApiVersion.Compatibility COMPATIBLE
-
HUMAN_DIFFER
public static final ApiVersion.Compatibility HUMAN_DIFFER
-
MAJOR_TOO_NEW
public static final ApiVersion.Compatibility MAJOR_TOO_NEW
-
MINOR_TOO_NEW
public static final ApiVersion.Compatibility MINOR_TOO_NEW
-
-
Method Detail
-
values
public static ApiVersion.Compatibility[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ApiVersion.Compatibility c : ApiVersion.Compatibility.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ApiVersion.Compatibility valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
cause
public java.lang.String cause()
-
-