JavaVersion

Known Java versions.

Author

Oliver Gierke

Phillip Webb

Moritz Halbritter

Since

2.0.0

Entries

Link copied to clipboard

Java 17.

Link copied to clipboard

Java 18.

Link copied to clipboard

Java 19.

Link copied to clipboard

Java 20.

Link copied to clipboard

Java 21.

Link copied to clipboard

Java 22.

Link copied to clipboard

Java 23.

Functions

Link copied to clipboard
Returns the JavaVersion of the current runtime.
Link copied to clipboard
Return if this version is equal to or newer than a given version.
Link copied to clipboard
open fun isOlderThan(version: JavaVersion): Boolean
Return if this version is older than a given version.
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun valueOf(name: String): JavaVersion

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.)

Link copied to clipboard
open fun values(): Array<JavaVersion>

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.