Module org.eclipse.persistence.core
Enum JavaSEPlatform
- All Implemented Interfaces:
Serializable,Comparable<JavaSEPlatform>,java.lang.constant.Constable
Java SE platforms supported by EclipseLink.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JavaSEPlatformCurrent Java SE platform.static final intGlassFish Java SE platform enumeration length.static final JavaSEPlatformLowest supported Java SE platform. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanatLeast(JavaSEPlatform platform) Check whether current Java SE is at least (greater or equal) provided platform.final JavaSEPlatform.Version[]Get additional version numbers.final intgetMajor()Get major version number.final intgetMinor()Get minor version number.booleangte(JavaSEPlatform platform) Check if this platform is equal or greater to specified platform.static booleanis(JavaSEPlatform platform) Check whether current Java SE is exactly matching provided platform.booleanCheck whether this platform is supported platform.toString()Return Java SE platform version as human readableString.static JavaSEPlatformtoValue(int major, int minor) Returns aJavaSEPlatformmatching providedmajorandminorversion numbers.static JavaSEPlatformReturns aJavaSEPlatformwith a value represented by the specifiedString.static JavaSEPlatformReturns the enum constant of this type with the specified name.static JavaSEPlatform[]values()Returns an array containing the constants of this enum type, in the order they are declared.Return computer readableStringcontaining version numbers in<major> '.' <minor>format.static final StringversionString(int major, int minor) GenerateStringcontaining minor and major version numbers in<major> '.' <minor>format.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface java.lang.Comparable
compareTo
-
Enum Constant Details
-
v1_1
Java SE 1.1. -
v1_2
Java SE 1.2. -
v1_3
Java SE 1.3. -
v1_4
Java SE 1.4. -
v1_5
Java SE 1.5. -
v1_6
Java SE 1.6. -
v1_7
Java SE 1.7. -
v1_8
Java SE 1.8. -
v9_0
Java SE 9. Version alias 1.9 is added too. -
v10_0
Java SE 10. -
v11_0
Java SE 11. -
v12_0
Java SE 12. -
v13_0
Java SE 13. -
v14_0
Java SE 14.
-
-
Field Details
-
LENGTH
public static final int LENGTHGlassFish Java SE platform enumeration length. -
MIN_SUPPORTED
Lowest supported Java SE platform. Currently it's Java SE 1.8. -
CURRENT
Current Java SE platform.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
is
Check whether current Java SE is exactly matching provided platform.- Parameters:
platform- Java SE platform to compare with.
-
atLeast
Check whether current Java SE is at least (greater or equal) provided platform.- Parameters:
platform- Java SE platform to compare with.
-
toValue
Returns aJavaSEPlatformwith a value represented by the specifiedString. TheJavaSEPlatformreturned represents existing value only if specifiedStringmatches anyStringreturned byversionString()method. Otherwisenullvalue is returned.- Parameters:
platformName- Value containingJavaSEPlatformversionStringrepresentation.- Returns:
JavaSEPlatformvalue represented byStringornullif value was not recognized.
-
toValue
Returns aJavaSEPlatformmatching providedmajorandminorversion numbers.- Parameters:
major- Major version number.minor- Minor version number.- Returns:
JavaSEPlatformvalue matching providedmajorandminorversion numbers.JavaSEPlatform.DEFAULTvalue is returned for unknown Java SE version numbers.
-
versionString
GenerateStringcontaining minor and major version numbers in<major> '.' <minor>format.- Parameters:
major- Major version number.minor- Minor version number.- Returns:
- Generated
String
-
getMajor
public final int getMajor()Get major version number.- Returns:
- Major version number.
-
getMinor
public final int getMinor()Get minor version number.- Returns:
- Minor version number.
-
getAdditionalVersions
Get additional version numbers.- Returns:
- an array of additional version numbers if exist or
nullif no additional version numbers are defined.
-
gte
Check if this platform is equal or greater to specified platform.- Parameters:
platform- Platform to compare with.- Returns:
- Value of
trueif this platform is equal or greater to specified platform orfalseotherwise.
-
isSupported
public boolean isSupported()Check whether this platform is supported platform.- Returns:
- Value of
truewhen this platform is supported platform orfalseotherwise.
-
versionString
Return computer readableStringcontaining version numbers in<major> '.' <minor>format.- Returns:
- computer readable
Stringcontaining version numbers
-
toString
Return Java SE platform version as human readableString.- Overrides:
toStringin classEnum<JavaSEPlatform>- Returns:
- Java SE platform version as human readable
String.
-