public enum JavaVersion extends Enum<JavaVersion>
| Enum Constant and Description | 
|---|
| JAVA_1_6 | 
| JAVA_1_7 | 
| JAVA_1_8 | 
| JAVA_1_9 | 
| UNKNOWN | 
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | isAtLeast(JavaVersion version)Check if the current runtime version is at least the given version. | 
| 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 UNKNOWN
public static final JavaVersion JAVA_1_6
public static final JavaVersion JAVA_1_7
public static final JavaVersion JAVA_1_8
public static final JavaVersion JAVA_1_9
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 boolean isAtLeast(JavaVersion version)
version - version to be compared against the current runtime versionUNKNOWN then it always returns true.Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.