commonMain.com.bselzer.ktx.value.identifier.StringIdentifier.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 StringIdentifier : Identifier {
override val isDefault: Boolean
get() = value.isBlank()
operator fun compareTo(other: String): Int = value.compareTo(other)
override operator fun compareTo(other: Identifier): Int = value.compareTo(other.value)
}