commonMain.pro.felixo.protobuf.Identifier.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-kotlin-common Show documentation
Show all versions of protobuf-kotlin-common Show documentation
Protocol Buffers 3 support for Kotlin Multiplatform
package pro.felixo.protobuf
import kotlin.jvm.JvmInline
/**
* Represents a protobuf identifier, which is a string consisting of letters, numbers, and underscores, starting with a
* letter or underscore.
*
* This class does not perform validation of identifiers.
*/
@JvmInline
value class Identifier(val value: String) : Comparable {
override fun compareTo(other: Identifier): Int = value.compareTo(other.value)
override fun toString() = value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy