data class JavaVersion: Any

Representation of the running Java version.

Fields

Name Description
val major: Int

major version component

val minor: Int

minor version component

val patch: Int

patch version component

Constructors

<init>

constructor(versionComponents: List<Int>)

Parameters

Name Description
versionComponents: List<Int>

<init>

constructor(major: Int, minor: Int, patch: Int)

Representation of the running Java version.

Parameters

Name Description
major: Int

major version component

minor: Int

minor version component

patch: Int

patch version component

Methods

isAtLeast

fun isAtLeast(major: Int, minor: Int): Boolean

Parameters

Name Description
major: Int
minor: Int

ReturnValue

Name Description
Boolean

isAtLeast

fun isAtLeast(major: Int, minor: Int, patch: Int): Boolean

Parameters

Name Description
major: Int
minor: Int
patch: Int

ReturnValue

Name Description
Boolean

toString

fun toString(): String

ReturnValue

Name Description
String

CompanionObject

JavaVersion

data class JavaVersion: Any

Representation of the running Java version.

Fields

Name Description
val CURRENT: JavaVersion