Enum ConditionalOnJava.Range
- java.lang.Object
- java.lang.Enum<ConditionalOnJava.Range>
- org.springframework.boot.autoconfigure.condition.ConditionalOnJava.Range
- All Implemented Interfaces:
Serializable
,Comparable<ConditionalOnJava.Range>
- Enclosing class:
- ConditionalOnJava
public static enum ConditionalOnJava.Range extends Enum<ConditionalOnJava.Range>
Range options.
Enum Constant Summary
Enum Constants Enum Constant Description EQUAL_OR_NEWER
Equal to, or newer than the specifiedJavaVersion
.OLDER_THAN
Older than the specifiedJavaVersion
.
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConditionalOnJava.Range
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConditionalOnJava.Range[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
EQUAL_OR_NEWER
public static final ConditionalOnJava.Range EQUAL_OR_NEWER
Equal to, or newer than the specifiedJavaVersion
.
OLDER_THAN
public static final ConditionalOnJava.Range OLDER_THAN
Older than the specifiedJavaVersion
.
Method Detail
values
public static ConditionalOnJava.Range[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConditionalOnJava.Range c : ConditionalOnJava.Range.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static ConditionalOnJava.Range valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null