class KotlinVersion : Comparable<KotlinVersion>
Platform and version requirements: Kotlin 1.1
Represents a version of the Kotlin standard library.
major, minor and patch are integer components of a version, they must be non-negative and not greater than 255 (MAX_COMPONENT_VALUE).
KotlinVersion(major: Int, minor: Int) Creates a version from major and minor components, leaving patch component zero. KotlinVersion(major: Int, minor: Int, patch: Int) Creates a version from all three components. |
val major: Int | |
val minor: Int | |
val patch: Int |
fun compareTo(other: KotlinVersion): Int Compares this object with the specified object for order. Returns zero if this object is equal to the specified other object, a negative number if it's less than other, or a positive number if it's greater than other. | |
fun equals(other: Any?): Boolean Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements: | |
fun hashCode(): Int Returns a hash code value for the object. The general contract of hashCode is: | |
fun isAtLeast(major: Int, minor: Int): Boolean Returns fun isAtLeast(major: Int, minor: Int, patch: Int): Boolean Returns | |
fun toString(): String Returns the string representation of this version |
val CURRENT: KotlinVersion Returns the current version of the Kotlin standard library. | |
const val MAX_COMPONENT_VALUE: Int Maximum value a version component can have, a constant value 255. |
© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-kotlin-version/index.html