public enum JRE extends Enum<JRE>
| Enum Constant and Description |
|---|
JAVA_10 |
JAVA_11 |
JAVA_12 |
JAVA_13 |
JAVA_14 |
JAVA_15 |
JAVA_16 |
JAVA_17 |
JAVA_18 |
JAVA_19 |
JAVA_20 |
JAVA_21 |
JAVA_22 |
JAVA_23 |
JAVA_8 |
JAVA_9 |
OTHER |
| Modifier and Type | Method and Description |
|---|---|
static JRE |
currentVersion()
get current JRE version
|
boolean |
isCurrentVersion()
is current version
|
static JRE |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JRE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JRE JAVA_8
public static final JRE JAVA_9
public static final JRE JAVA_10
public static final JRE JAVA_11
public static final JRE JAVA_12
public static final JRE JAVA_13
public static final JRE JAVA_14
public static final JRE JAVA_15
public static final JRE JAVA_16
public static final JRE JAVA_17
public static final JRE JAVA_18
public static final JRE JAVA_19
public static final JRE JAVA_20
public static final JRE JAVA_21
public static final JRE JAVA_22
public static final JRE JAVA_23
public static final JRE OTHER
public static JRE[] values()
for (JRE c : JRE.values()) System.out.println(c);
public static JRE 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 JRE currentVersion()
public boolean isCurrentVersion()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.