All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.bselzer.ktx.value.identifier.DoubleIdentifier.kt Maven / Gradle / Ivy

The newest version!
package com.bselzer.ktx.value.identifier

interface DoubleIdentifier : 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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy