expect class Uuid : Comparable<Uuid>
A RFC4122 UUID |
|
interface UuidHasher
Interface for computing a hash for a "Name-Based" UUID |
|
|
UuidTest |
class UuidTest |
typealias |
|
|
Uuid |
actual typealias Uuid = UUID |
expect val Uuid.bytes: ByteArray
Gets the raw UUID bytes |
|
val Uuid. |
|
expect val Uuid.variant: Int
The variant of the Uuid, determines the interpretation of the bits. |
|
expect val Uuid.version: Int
The version of the Uuid, denoting the generating algorithm. |
fun nameBasedUuidOf(namespace: Uuid, name: String, hasher: UuidHasher): Uuid
Constructs a "Name-Based" version 3 or 5 UUID. |
|
|
uuid3Of |
fun uuid3Of(namespace: Uuid, name: String): Uuid
Constructs a "Name-Based" version 3 UUID. |
|
uuid4 |
expect fun uuid4(): Uuid
Construct new version 4 UUID. |
|
uuid5Of |
fun uuid5Of(namespace: Uuid, name: String): Uuid
Constructs a "Name-Based" version 5 UUID. |
|
uuidFrom |
expect fun uuidFrom(string: String): Uuid
|
|
uuidOf |
expect fun uuidOf(bytes: ByteArray): Uuid
|