public enum JavaVersion extends Enum<JavaVersion>
Modifier and Type | Method and Description |
---|---|
static JavaVersion |
from(String version)
Java version string like in
"java.version" property. |
static JavaVersion |
getRuntimeVersion()
Returns enum value that represents current runtime.
|
static JavaVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaVersion v1_8
public static final JavaVersion other
public static JavaVersion[] values()
for (JavaVersion c : JavaVersion.values()) System.out.println(c);
public static JavaVersion 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 JavaVersion getRuntimeVersion()
public static JavaVersion from(String version)
"java.version"
property.version
- string like 1.6, 1.7, etcCopyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.