struct Uuid
source · line 12public
public struct Uuid(val mostSignificantBits: ULong, val leastSignificantBits: ULong) : Equals<Uuid>, Compare<Uuid>, Hash, ToString
- Supertype
Equals<Uuid> - Supertype
Compare<Uuid> - Supertype
Hash - Supertype
ToString
A 128-bit identifier represented by unsigned high and low halves. Ordering compares those halves unsigned, and byte conversion uses network byte order.
function equals
source · line 17public
public override operator fun equals(other: Uuid): Boolean
- Overrides
equals
Compares the stored value components for equality.
parameter other
source · line 17public
other: Uuid
function toHexString
source · line 45public
public fun toHexString(): String
Returns 32 lowercase hexadecimal digits without separators.
field mostSignificantBits
source · line 12public
val mostSignificantBits: ULong
function toString
source · line 63public
public override fun toString(): String
- Overrides
toString
Returns the lowercase hyphenated UUID representation.
function hash
source · line 30public
public override fun hash(): Long
- Overrides
hash
Computes a hash consistent with component equality.
function toLongs
source · line 34public
public fun toLongs(): (Long, Long)
Returns the raw high and low bit patterns reinterpreted as signed Long values.
constructor constructor
source · line 12public
constructor(val mostSignificantBits: ULong, val leastSignificantBits: ULong)
parameter leastSignificantBits
source · line 12public
val leastSignificantBits: ULong
parameter mostSignificantBits
source · line 12public
val mostSignificantBits: ULong
function toHexDashString
source · line 49public
public fun toHexDashString(): String
Returns lowercase hexadecimal text in the 8-4-4-4-12 grouping.
function toByteArray
source · line 38public
public fun toByteArray(): Array<Byte>
Returns 16 bytes in network byte order.
function compareTo
source · line 23public
public override operator fun compareTo(other: Uuid): Long
- Overrides
compareTo
Orders the unsigned high 64 bits first, then the unsigned low 64 bits.
parameter other
source · line 23public
other: Uuid
field leastSignificantBits
source · line 12public
val leastSignificantBits: ULong