public enum JavaVersion extends Enum<JavaVersion>
| Modifier and Type | Method and Description |
|---|---|
static String |
current() |
static JavaVersion |
findByLabel(String label) |
String |
getLabel() |
int |
getVersion() |
static String |
toVersion(String 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 v1_6
public static final JavaVersion v1_7
public static final JavaVersion v1_8
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 int getVersion()
public String getLabel()
public static JavaVersion findByLabel(String label)
public static String current()
Copyright © 2016–2020 Fizzed, Inc. All rights reserved.