public static enum ConditionalOnJava.JavaVersion extends Enum<ConditionalOnJava.JavaVersion>
Enum Constant and Description |
---|
EIGHT
Java 1.8.
|
NINE
Java 1.9.
|
SEVEN
Java 1.7.
|
SIX
Java 1.6.
|
Modifier and Type | Method and Description |
---|---|
static ConditionalOnJava.JavaVersion |
getJavaVersion()
Returns the
ConditionalOnJava.JavaVersion of the current runtime. |
boolean |
isWithin(ConditionalOnJava.Range range,
ConditionalOnJava.JavaVersion version)
Determines if this version is within the specified range of versions.
|
String |
toString() |
static ConditionalOnJava.JavaVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConditionalOnJava.JavaVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConditionalOnJava.JavaVersion SIX
public static final ConditionalOnJava.JavaVersion SEVEN
public static final ConditionalOnJava.JavaVersion EIGHT
public static final ConditionalOnJava.JavaVersion NINE
public static ConditionalOnJava.JavaVersion[] values()
for (ConditionalOnJava.JavaVersion c : ConditionalOnJava.JavaVersion.values()) System.out.println(c);
public static ConditionalOnJava.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 boolean isWithin(ConditionalOnJava.Range range, ConditionalOnJava.JavaVersion version)
range
- the rangeversion
- the bounds of the rangepublic String toString()
toString
in class Enum<ConditionalOnJava.JavaVersion>
public static ConditionalOnJava.JavaVersion getJavaVersion()
ConditionalOnJava.JavaVersion
of the current runtime.Copyright © 2014 Pivotal Software, Inc.. All rights reserved.