Uuid

expect class Uuid : Comparable<Uuid>

A RFC4122 UUID

actual typealias Uuid = UUID
actual class Uuid constructor(uuidBytes: ByteArray) : Comparable<Uuid>

A RFC4122 UUID

Throws

, if uuid.count() is not 16

Constructors

Link copied to clipboard
expect constructor(msb: Long, lsb: Long)

Construct new Uuid instance using the given data.

constructor(uuidBytes: ByteArray)

Constructs a new UUID from the given ByteArray

actual constructor(msb: Long, lsb: Long)

Properties

Link copied to clipboard
expect val Uuid.bytes: ByteArray

Gets the raw UUID bytes

actual val Uuid.bytes: ByteArray
Link copied to clipboard

The least significant 64 bits of this UUID's 128 bit value.

Link copied to clipboard

The most significant 64 bits of this UUID's 128 bit value.

Link copied to clipboard
Link copied to clipboard
expect val Uuid.variant: Int

The variant of the Uuid, determines the interpretation of the bits.

actual val Uuid.variant: Int
Link copied to clipboard
expect val Uuid.version: Int

The version of the Uuid, denoting the generating algorithm.

actual val Uuid.version: Int

Functions

compareTo
Link copied to clipboard
abstract operator fun compareTo(other: Uuid): Int
open operator override fun compareTo(other: Uuid): Int
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
open override fun toString(): String

Converts the UUID to a UUID string, per RFC4122