public static enum JavaVersionParser.KnownJavaVersions extends Enum<JavaVersionParser.KnownJavaVersions>
UNKNOWN
for ones we don't yet know aboutEnum Constant and Description |
---|
JAVA_6 |
JAVA_7 |
JAVA_8 |
JAVA_9 |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static JavaVersionParser.KnownJavaVersions |
fromMajorVersion(Integer majorVersionFamily,
Integer majorVersion)
Tries to determine a known version from the parsed major version components
|
static JavaVersionParser.KnownJavaVersions |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaVersionParser.KnownJavaVersions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaVersionParser.KnownJavaVersions JAVA_6
public static final JavaVersionParser.KnownJavaVersions JAVA_7
public static final JavaVersionParser.KnownJavaVersions JAVA_8
public static final JavaVersionParser.KnownJavaVersions JAVA_9
public static final JavaVersionParser.KnownJavaVersions UNKNOWN
public static JavaVersionParser.KnownJavaVersions[] values()
for (JavaVersionParser.KnownJavaVersions c : JavaVersionParser.KnownJavaVersions.values()) System.out.println(c);
public static JavaVersionParser.KnownJavaVersions 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 JavaVersionParser.KnownJavaVersions fromMajorVersion(Integer majorVersionFamily, Integer majorVersion)
majorVersionFamily
- Major version family of the JVM. Currently only 1 is known (i.e. '1.7')majorVersion
- Major version of JVM (6, 7, 8, etc)JavaVersionParser.KnownJavaVersions
or UNKNOWN
if unable to
determineCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.