JavaVersion

An enumeration of Java versions. Before 9: http://www.oracle.com/technetwork/java/javase/versioning-naming-139433.html 9+: http://openjdk.java.net/jeps/223

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Java 11 major version.

Link copied to clipboard

Java 12 major version.

Link copied to clipboard

Java 13 major version.

Link copied to clipboard

Java 14 major version.

Link copied to clipboard

Java 15 major version.

Link copied to clipboard

Java 16 major version.

Link copied to clipboard

Java 17 major version.

Link copied to clipboard

Java 18 major version.

Link copied to clipboard

Java 19 major version.

Link copied to clipboard

Java 20 major version.

Link copied to clipboard

Java 21 major version.

Link copied to clipboard

Java 22 major version.

Link copied to clipboard

Java 23 major version.

Link copied to clipboard

Java 24 major version. Not officially supported by Gradle. Use at your own risk.

Link copied to clipboard

Java 25 major version. Not officially supported by Gradle. Use at your own risk.

Link copied to clipboard

Java 26 major version. Not officially supported by Gradle. Use at your own risk.

Link copied to clipboard

Java 27 major version. Not officially supported by Gradle. Use at your own risk.

Link copied to clipboard

Higher version of Java.

Functions

Link copied to clipboard
open fun current(): JavaVersion
Returns the version of the current JVM.
Link copied to clipboard
open fun forClass(classData: Array<Byte>): JavaVersion
Link copied to clipboard
open fun forClassVersion(classVersion: Int): JavaVersion
Link copied to clipboard
Link copied to clipboard
open fun isCompatibleWith(otherVersion: JavaVersion): Boolean
Returns if this version is compatible with the given version
Link copied to clipboard
open fun isJava10(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isJava11(): Boolean
Returns if the version is Java 11.
Link copied to clipboard
Returns if the version is Java 11 compatible.
Link copied to clipboard
open fun isJava12(): Boolean
Returns if the version is Java 12.
Link copied to clipboard
Returns if the version is Java 12 compatible.
Link copied to clipboard
open fun isJava5(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isJava6(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isJava7(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isJava8(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isJava9(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun toVersion(value: Any): JavaVersion
Converts the given object into a JavaVersion.
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.