public enum JavaSdkVersion extends java.lang.Enum<JavaSdkVersion>
JavaSdk#getVersion(Sdk)
method to obtain a version of an Sdk
.LanguageLevel
Enum Constant and Description |
---|
JDK_1_0 |
JDK_1_1 |
JDK_1_2 |
JDK_1_3 |
JDK_1_4 |
JDK_1_5 |
JDK_1_6 |
JDK_1_7 |
JDK_1_8 |
JDK_1_9 |
JDK_10 |
JDK_11 |
JDK_12 |
JDK_13 |
JDK_14 |
JDK_15 |
Modifier and Type | Method and Description |
---|---|
static JavaSdkVersion |
fromJavaVersion(JavaVersion version) |
static JavaSdkVersion |
fromLanguageLevel(LanguageLevel languageLevel) |
static JavaSdkVersion |
fromVersionString(java.lang.String versionString)
See
JavaVersion.parse(String) for supported formats. |
java.lang.String |
getDescription() |
LanguageLevel |
getMaxLanguageLevel() |
boolean |
isAtLeast(JavaSdkVersion version) |
static JavaSdkVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JavaSdkVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaSdkVersion JDK_1_0
public static final JavaSdkVersion JDK_1_1
public static final JavaSdkVersion JDK_1_2
public static final JavaSdkVersion JDK_1_3
public static final JavaSdkVersion JDK_1_4
public static final JavaSdkVersion JDK_1_5
public static final JavaSdkVersion JDK_1_6
public static final JavaSdkVersion JDK_1_7
public static final JavaSdkVersion JDK_1_8
public static final JavaSdkVersion JDK_1_9
public static final JavaSdkVersion JDK_10
public static final JavaSdkVersion JDK_11
public static final JavaSdkVersion JDK_12
public static final JavaSdkVersion JDK_13
public static final JavaSdkVersion JDK_14
public static final JavaSdkVersion JDK_15
public static JavaSdkVersion[] values()
for (JavaSdkVersion c : JavaSdkVersion.values()) System.out.println(c);
public static JavaSdkVersion 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 LanguageLevel getMaxLanguageLevel()
public java.lang.String getDescription()
public boolean isAtLeast(JavaSdkVersion version)
public static JavaSdkVersion fromLanguageLevel(LanguageLevel languageLevel) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static JavaSdkVersion fromVersionString(java.lang.String versionString)
JavaVersion.parse(String)
for supported formats.public static JavaSdkVersion fromJavaVersion(JavaVersion version)