public enum SpecVersion extends Enum<SpecVersion>
| Modifier and Type | Field and Description |
|---|---|
static SpecVersion |
LATEST |
| Modifier and Type | Method and Description |
|---|---|
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(String token)
Parses "2.0", "2.1", and "2.2" into the
SpecVersion object. |
static SpecVersion |
valueOf(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isLaterThan(SpecVersion t)
public static SpecVersion parse(String token)
SpecVersion object.public String getVersion()
SpecVersionCopyright © 2019 JBoss by Red Hat. All rights reserved.