public enum LanguageVersion extends Enum<LanguageVersion>
SourceVersion
but also works on Android.Enum Constant and Description |
---|
JAVA_1_5 |
JAVA_1_6 |
JAVA_1_7 |
JAVA_1_8 |
JAVA_1_9 |
Modifier and Type | Method and Description |
---|---|
boolean |
atLeast(LanguageVersion version) |
static LanguageVersion |
current() |
static LanguageVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LanguageVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LanguageVersion JAVA_1_5
public static final LanguageVersion JAVA_1_6
public static final LanguageVersion JAVA_1_7
public static final LanguageVersion JAVA_1_8
public static final LanguageVersion JAVA_1_9
public static LanguageVersion[] values()
for (LanguageVersion c : LanguageVersion.values()) System.out.println(c);
public static LanguageVersion 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 static LanguageVersion current()
public boolean atLeast(LanguageVersion version)