ULID

@Serializable(with = ULID.Serializer::class)
class ULID : Comparable<ULID>

ULID class

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class MonotonicGenerator(ulid: ULID = randomULID())

MonotonicGenerator generates new monotonic ULIDs.

Link copied to clipboard
object Serializer : KSerializer<ULID>

Properties

Link copied to clipboard
val binary: Source

the binary of the ULID. It has 128 bits.

Functions

Link copied to clipboard
open operator override fun compareTo(other: ULID): Int
Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun instant(): Instant
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun toUUID(): Uuid