|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<JavaVersion>
org.ehcache.internal.classes.commonslang.JavaVersion
public enum JavaVersion
An enum representing all the versions of the Java specification. This is intended to mirror available values from the java.specification.version System property.
Enum Constant Summary | |
---|---|
JAVA_0_9
The Java version reported by Android. |
|
JAVA_1_1
Java 1.1. |
|
JAVA_1_2
Java 1.2. |
|
JAVA_1_3
Java 1.3. |
|
JAVA_1_4
Java 1.4. |
|
JAVA_1_5
Java 1.5. |
|
JAVA_1_6
Java 1.6. |
|
JAVA_1_7
Java 1.7. |
|
JAVA_1_8
Java 1.8. |
|
JAVA_1_9
Java 1.9. |
|
JAVA_RECENT
Java 1.x, x > 9. |
Method Summary | |
---|---|
boolean |
atLeast(JavaVersion requiredVersion)
Whether this version of Java is at least the version of Java passed in. |
java.lang.String |
toString()
The string value is overridden to return the standard name. |
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final JavaVersion JAVA_0_9
public static final JavaVersion JAVA_1_1
public static final JavaVersion JAVA_1_2
public static final JavaVersion JAVA_1_3
public static final JavaVersion JAVA_1_4
public static final JavaVersion JAVA_1_5
public static final JavaVersion JAVA_1_6
public static final JavaVersion JAVA_1_7
public static final JavaVersion JAVA_1_8
public static final JavaVersion JAVA_1_9
public static final JavaVersion JAVA_RECENT
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is nullpublic boolean atLeast(JavaVersion requiredVersion)
Whether this version of Java is at least the version of Java passed in.
For example:
myVersion.atLeast(JavaVersion.JAVA_1_4)
requiredVersion
- the version to check against, not null
public java.lang.String toString()
The string value is overridden to return the standard name.
For example, "1.5"
.
toString
in class java.lang.Enum<JavaVersion>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |