ULID

@Serializable(with = ULIDAsStringSerializer::class)
interface ULID : Comparable<ULID>

Universally Unique Lexicographically Sortable Identifier.

Specification

Types

Link copied to clipboard
Link copied to clipboard
interface Factory

ULID factory.

Link copied to clipboard
interface Monotonic

Monotonic ULID factory.

Properties

Link copied to clipboard

The least significant 64 bits of this ULID.

Link copied to clipboard

The most significant 64 bits of this ULID.

Link copied to clipboard
abstract val timestamp: Long

Get timestamp.

Functions

Link copied to clipboard
abstract operator fun compareTo(other: ULID): Int
Link copied to clipboard
abstract fun increment(): ULID
Link copied to clipboard
abstract fun toBytes(): ByteArray

Generate the ByteArray for this ULID.