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