public enum SpecVersion extends java.lang.Enum<SpecVersion>
| Modifier and Type | Field | Description |
|---|---|---|
static SpecVersion |
LATEST |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getVersion() |
Gives the String representation of the
SpecVersion |
boolean |
isLaterThan(SpecVersion t) |
Returns true if this version is equal or later than the given one.
|
static SpecVersion |
parse(java.lang.String token) |
Parses "2.0", "2.1", and "2.2" into the
SpecVersion object. |
static SpecVersion |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static SpecVersion[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpecVersion V2_0
public static final SpecVersion V2_1
public static final SpecVersion V2_2
public static final SpecVersion LATEST
public static SpecVersion[] values()
for (SpecVersion c : SpecVersion.values()) System.out.println(c);
public static SpecVersion 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 boolean isLaterThan(SpecVersion t)
public static SpecVersion parse(java.lang.String token)
SpecVersion object.public java.lang.String getVersion()
SpecVersionCopyright © 2017 Oracle Corporation. All rights reserved.