public enum JavaVersionUtils extends java.lang.Enum<JavaVersionUtils>
Enum Constant and Description |
---|
JAVA_8 |
JAVA_9 |
JAVA_VERSION |
Modifier and Type | Field and Description |
---|---|
static int |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
int |
getMajor() |
java.lang.String |
getVerboseGCFlag() |
boolean |
isKnown() |
boolean |
useUnifiedLogging() |
static JavaVersionUtils |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JavaVersionUtils[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaVersionUtils JAVA_VERSION
public static final JavaVersionUtils JAVA_8
public static final JavaVersionUtils JAVA_9
public static final int UNKNOWN
public static JavaVersionUtils[] values()
for (JavaVersionUtils c : JavaVersionUtils.values()) System.out.println(c);
public static JavaVersionUtils 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 int getMajor()
public boolean isKnown()
public boolean useUnifiedLogging()
public java.lang.String getVerboseGCFlag()