EffectiveUUIDConverter

abstract class EffectiveUUIDConverter

Maps longs to/from UUIDs using a fixed high-bits getPrefix as a namespace, so ids can be encoded as UUIDs and recognized back (e.g. zone-box render handles).

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun fromUUID(uuid: UUID): Long?

Decodes the long from uuid, or null if its prefix doesn't match this converter.

Link copied to clipboard
abstract fun getPrefix(): Long

The fixed high-64-bits namespace identifying UUIDs produced by this converter.

Link copied to clipboard
fun toUUID(number: Long): UUID

Encodes number into a UUID under this converter's prefix.