public enum JavaVersionUtils extends java.lang.Enum<JavaVersionUtils>
| Enum Constant and Description |
|---|
JAVA_VERSION |
| Modifier and Type | Field and Description |
|---|---|
static int |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
int |
getMajor() |
boolean |
isKnown() |
int |
parseMajor(java.lang.String version) |
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 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 int parseMajor(java.lang.String version)
public boolean useUnifiedLogging()