java.io.Serializable
, java.lang.Comparable<JavaVersion>
public enum JavaVersion extends java.lang.Enum<JavaVersion>
Modifier and Type | Method | Description |
---|---|---|
static JavaVersion |
from(java.lang.String version) |
Java version string like in
"java.version" property |
static JavaVersion |
getRuntimeVersion() |
Returns enum value that represents current runtime.
|
static JavaVersion |
valueOf(java.lang.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_6
public static final JavaVersion v1_7
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(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 static JavaVersion getRuntimeVersion()
public static JavaVersion from(java.lang.String version)
"java.version"
propertyversion
- string like 1.6, 1.7, etcCopyright © 2018 PostgreSQL Global Development Group. All rights reserved.