compareTo
Требования к платформе и версии: JVM (1.0), JS (1.0), Native (1.0)
operator fun compareTo(other: UByte): Int
operator fun compareTo(other: UShort): Int
operator fun compareTo(other: UInt): Int
operator fun compareTo(other: ULong): Int
Сравнивает это значение с указанным значением по порядку. Возвращает ноль, если это значение равно указанному другому значению, отрицательное число, если оно меньше other, или положительное число, если оно больше other.
© 2010–2022 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/compare-to.html