from

fun from(uuidString: String): RealmUUID

Generates a new RealmUUID from the UUID formatted string. UUID are represented as 32 hexadecimal (base-16) digits, displayed in five groups separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens).

Return

A UUID with the specified value

Parameters

uuidString

A string that specifies a UUID

Throws

if uuidString does not match the UUID string format.


fun from(bytes: ByteArray): RealmUUID

Generates a new RealmUUID based on the specified byte array. A valid UUID is represented by a byte array of size 16.

Return

A UUID with the specified value

Parameters

bytes

A byte array that specifies a UUID

Throws

if bytes does not match the required byte array size 16.