public enum JavaVersion extends java.lang.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 |
fromBree(java.lang.String bree) |
static JavaVersion |
fromQualifier(java.lang.String qualifier) |
java.lang.String |
getBree() |
java.lang.String |
getLabel() |
java.lang.String |
getQualifier() |
boolean |
isAtLeast(JavaVersion other) |
static JavaVersion |
valueOf(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static JavaVersion fromQualifier(java.lang.String qualifier)
public static JavaVersion fromBree(java.lang.String bree)
public java.lang.String getLabel()
public java.lang.String getQualifier()
public java.lang.String getBree()
public boolean isAtLeast(JavaVersion other)