public enum JavaVersion extends Enum<JavaVersion>
| Enum Constant and Description |
|---|
JAVA5
Java 5 language enhancements: generics, simplified for-loop, autoboxing and unboxing, enums, varargs, static
import, annotations.
|
JAVA6
Java 6 language enhancements: Override annotations for implemented methods.
|
JAVA7
Java 7 language enhancements: extended numeric literals, switch over strings, type inference, try-with-resources,
catch multiple exceptions.
|
JAVA8
Java 8 language enhancements: lambda expressions, better type inference, more flexible annotations.
|
| Modifier and Type | Method and Description |
|---|---|
static JavaVersion |
fromQualifier(String qualifier) |
String |
getLabel() |
String |
getQualifier() |
boolean |
isAtLeast(JavaVersion other) |
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 JAVA5
public static final JavaVersion JAVA6
public static final JavaVersion JAVA7
public static final JavaVersion JAVA8
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 JavaVersion fromQualifier(String qualifier)
public String getLabel()
public String getQualifier()
public boolean isAtLeast(JavaVersion other)
Copyright © 2015. All Rights Reserved.