JavaVersion Class

public final class JavaVersion
extends ExpandableStringEnum<JavaVersion>

Defines values for Java versions.

Field Summary

Modifier and Type Field and Description
static final JavaVersion JAVA_11

Static value Zulu 11 for JavaVersion.

static final JavaVersion JAVA_1_7_0_51

Static value 1.7.0_51 for JavaVersion.

static final JavaVersion JAVA_1_7_0_71

Static value 1.7.0_71 for JavaVersion.

static final JavaVersion JAVA_1_7_0_80

Static value 1.7.0_80 for JavaVersion.

static final JavaVersion JAVA_1_8_0_111

Static value 1.8.0_111 for JavaVersion.

static final JavaVersion JAVA_1_8_0_144

Static value 1.8.0_144 for JavaVersion.

static final JavaVersion JAVA_1_8_0_172

Static value 1.8.0_172 for JavaVersion.

static final JavaVersion JAVA_1_8_0_181

Static value Zulu 1.8.0_181 for JavaVersion.

static final JavaVersion JAVA_1_8_0_202

Static value Zulu 1.8.0_202 for JavaVersion.

static final JavaVersion JAVA_1_8_0_25

Static value 1.8.0_25 for JavaVersion.

static final JavaVersion JAVA_1_8_0_60

Static value 1.8.0_60 for JavaVersion.

static final JavaVersion JAVA_1_8_0_73

Static value 1.8.0_73 for JavaVersion.

static final JavaVersion JAVA_7_NEWEST

Static value Java 7 newest for JavaVersion.

static final JavaVersion JAVA_8_NEWEST

Static value Java 8 newest for JavaVersion.

static final JavaVersion JAVA_ZULU_11_0_2

Static value Zulu 11.0.2_ZULU for JavaVersion.

static final JavaVersion JAVA_ZULU_1_7_0_191

Static value 1.7.0_191_ZULU for JavaVersion.

static final JavaVersion JAVA_ZULU_1_8_0_102

Static value Zulu 1.8.0_102 for JavaVersion.

static final JavaVersion JAVA_ZULU_1_8_0_172

Static value 1.8.0_172_ZULU for JavaVersion.

static final JavaVersion JAVA_ZULU_1_8_0_181

Static value Zulu 1.8.0_181_ZULU for JavaVersion.

static final JavaVersion JAVA_ZULU_1_8_0_202

Static value Zulu 1.8.0_202_ZULU for JavaVersion.

static final JavaVersion JAVA_ZULU_1_8_0_92

Static value Zulu 1.8.0_92 for JavaVersion.

static final JavaVersion OFF

Static value 'Off' for JavaVersion.

Constructor Summary

Constructor Description
JavaVersion()

Method Summary

Modifier and Type Method and Description
static JavaVersion fromString(String name)

Finds or creates a Java version value based on the provided name.

static Collection<JavaVersion> values()

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

JAVA_11

public static final JavaVersion JAVA_11

Static value Zulu 11 for JavaVersion.

JAVA_1_7_0_51

public static final JavaVersion JAVA_1_7_0_51

Static value 1.7.0_51 for JavaVersion.

JAVA_1_7_0_71

public static final JavaVersion JAVA_1_7_0_71

Static value 1.7.0_71 for JavaVersion.

JAVA_1_7_0_80

public static final JavaVersion JAVA_1_7_0_80

Static value 1.7.0_80 for JavaVersion.

JAVA_1_8_0_111

public static final JavaVersion JAVA_1_8_0_111

Static value 1.8.0_111 for JavaVersion.

JAVA_1_8_0_144

public static final JavaVersion JAVA_1_8_0_144

Static value 1.8.0_144 for JavaVersion.

JAVA_1_8_0_172

public static final JavaVersion JAVA_1_8_0_172

Static value 1.8.0_172 for JavaVersion.

JAVA_1_8_0_181

public static final JavaVersion JAVA_1_8_0_181

Static value Zulu 1.8.0_181 for JavaVersion.

JAVA_1_8_0_202

public static final JavaVersion JAVA_1_8_0_202

Static value Zulu 1.8.0_202 for JavaVersion.

JAVA_1_8_0_25

public static final JavaVersion JAVA_1_8_0_25

Static value 1.8.0_25 for JavaVersion.

JAVA_1_8_0_60

public static final JavaVersion JAVA_1_8_0_60

Static value 1.8.0_60 for JavaVersion.

JAVA_1_8_0_73

public static final JavaVersion JAVA_1_8_0_73

Static value 1.8.0_73 for JavaVersion.

JAVA_7_NEWEST

public static final JavaVersion JAVA_7_NEWEST

Static value Java 7 newest for JavaVersion.

JAVA_8_NEWEST

public static final JavaVersion JAVA_8_NEWEST

Static value Java 8 newest for JavaVersion.

JAVA_ZULU_11_0_2

public static final JavaVersion JAVA_ZULU_11_0_2

Static value Zulu 11.0.2_ZULU for JavaVersion.

JAVA_ZULU_1_7_0_191

public static final JavaVersion JAVA_ZULU_1_7_0_191

Static value 1.7.0_191_ZULU for JavaVersion.

JAVA_ZULU_1_8_0_102

public static final JavaVersion JAVA_ZULU_1_8_0_102

Static value Zulu 1.8.0_102 for JavaVersion.

JAVA_ZULU_1_8_0_172

public static final JavaVersion JAVA_ZULU_1_8_0_172

Static value 1.8.0_172_ZULU for JavaVersion.

JAVA_ZULU_1_8_0_181

public static final JavaVersion JAVA_ZULU_1_8_0_181

Static value Zulu 1.8.0_181_ZULU for JavaVersion.

JAVA_ZULU_1_8_0_202

public static final JavaVersion JAVA_ZULU_1_8_0_202

Static value Zulu 1.8.0_202_ZULU for JavaVersion.

JAVA_ZULU_1_8_0_92

public static final JavaVersion JAVA_ZULU_1_8_0_92

Static value Zulu 1.8.0_92 for JavaVersion.

OFF

public static final JavaVersion OFF

Static value 'Off' for JavaVersion.

Constructor Details

JavaVersion

public JavaVersion()

Method Details

fromString

public static JavaVersion fromString(String name)

Finds or creates a Java version value based on the provided name.

Parameters:

name - a name

Returns:

a JavaVersion instance

values

public static Collection values()

Returns:

known Java versions

Applies to