Enum JRE

java.lang.Object
java.lang.Enum<JRE>
org.apache.dubbo.common.utils.JRE
All Implemented Interfaces:
Serializable, Comparable<JRE>, java.lang.constant.Constable

public enum JRE extends Enum<JRE>
JRE version
  • Enum Constant Details

    • JAVA_8

      public static final JRE JAVA_8
    • JAVA_9

      public static final JRE JAVA_9
    • JAVA_10

      public static final JRE JAVA_10
    • JAVA_11

      public static final JRE JAVA_11
    • JAVA_12

      public static final JRE JAVA_12
    • JAVA_13

      public static final JRE JAVA_13
    • JAVA_14

      public static final JRE JAVA_14
    • JAVA_15

      public static final JRE JAVA_15
    • JAVA_16

      public static final JRE JAVA_16
    • JAVA_17

      public static final JRE JAVA_17
    • JAVA_18

      public static final JRE JAVA_18
    • JAVA_19

      public static final JRE JAVA_19
    • OTHER

      public static final JRE OTHER
  • Method Details

    • values

      public static JRE[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static JRE valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • currentVersion

      public static JRE currentVersion()
      get current JRE version
      Returns:
      JRE version
    • isCurrentVersion

      public boolean isCurrentVersion()
      is current version
      Returns:
      true if current version