Uuid

expect class Uuid : Comparable<Uuid>

A RFC4122 UUID

actual class Uuid : Comparable<Uuid> , Serializable

A RFC4122 UUID wrapper class.

This type wraps the standard JavaUUID type, and behaves identically; it will produce a string via toString in the same manner, and is Comparable with other UUIDs, and java.io.Serializable.

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.

actual constructor(msb: Long, lsb: Long)
constructor(uuidBytes: ByteArray)

Constructs a new UUID from the given ByteArray

actual constructor(msb: Long, lsb: Long)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
expect val Uuid.bytes: ByteArray

Gets the raw UUID bytes

actual val Uuid.bytes: ByteArray
actual val Uuid.bytes: ByteArray
Link copied to clipboard
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
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
actual val Uuid.version: Int

Functions

Link copied to clipboard
expect open operator override fun compareTo(other: Uuid): Int

UUIDs implement the Comparable interface.

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

Converts the UUID to a UUID string, per RFC4122