public enum APIVersion extends java.lang.Enum<APIVersion>
Enum Constant and Description |
---|
API_1_1 |
API_1_2 |
API_1_3 |
API_1_4 |
API_1_5 |
API_1_6 |
API_1_7 |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static APIVersion |
fromMajorMinor(long major,
long minor) |
static APIVersion |
latest() |
java.lang.String |
toString() |
static APIVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static APIVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final APIVersion API_1_1
public static final APIVersion API_1_2
public static final APIVersion API_1_3
public static final APIVersion API_1_4
public static final APIVersion API_1_5
public static final APIVersion API_1_6
public static final APIVersion API_1_7
public static final APIVersion UNKNOWN
public static APIVersion[] values()
for (APIVersion c : APIVersion.values()) System.out.println(c);
public static APIVersion valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static APIVersion latest()
public static APIVersion fromMajorMinor(long major, long minor)
public java.lang.String toString()
toString
in class java.lang.Enum<APIVersion>