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

commonMain.pro.felixo.protobuf.Identifier.kt Maven / Gradle / Ivy

There is a newer version: 0.5.0
Show newest version
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