commonMain.com.bselzer.ktx.value.identifier.ShortIdentifier.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of value-identifier-jvm Show documentation
Show all versions of value-identifier-jvm Show documentation
Value class wrappers for identifiers.
The newest version!
package com.bselzer.ktx.value.identifier
interface ShortIdentifier : NumberIdentifier {
override val isDefault: Boolean
get() = value <= 0
override operator fun compareTo(other: Byte): Int = value.compareTo(other)
override operator fun compareTo(other: Short): Int = value.compareTo(other)
override operator fun compareTo(other: Int): Int = value.compareTo(other)
override operator fun compareTo(other: Long): Int = value.compareTo(other)
override operator fun compareTo(other: Float): Int = value.compareTo(other)
override operator fun compareTo(other: Double): Int = value.compareTo(other)
override operator fun compareTo(other: Identifier): Int = value.compareTo(other.value)
}