Private
constructorInitializes the UUID object.
The time_low field (octet 0-3, uint32).
The time_mid field (octet 4-5, uint16).
The time_hi_and_version field (octet 6-7, uint16).
The clock_seq_hi_and_reserved field (octet 8, uint8).
The clock_seq_low field (octet 9, uint8).
The node field (octet 10-15, uint48).
Readonly
bitThe UUID internal field values as an array of binary strings.
Note that these internal fields from the obsolete RFC 4122 are no longer used in the current RFC 9562.
Readonly
clockReadonly
clockReadonly
node: stringReadonly
timeReadonly
timeReadonly
timeReadonly
bitThe 128-bit binary string representation.
Readonly
hexThe UUID internal field values as an array of hexadecimal strings.
Note that these internal fields from the obsolete RFC 4122 are no longer used in the current RFC 9562.
Readonly
clockReadonly
clockReadonly
node: stringReadonly
timeReadonly
timeReadonly
timeReadonly
hexThe non-delimited hexadecimal string representation ("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx").
v3.3.0
Readonly
hexThe hexadecimal string representation ("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
Readonly
intThe UUID internal field values as an array of integers.
Note that these internal fields from the obsolete RFC 4122 are no longer used in the current RFC 9562.
Readonly
clockReadonly
clockReadonly
node: numberReadonly
timeReadonly
timeReadonly
timeReadonly
urnThe URN string representation ("urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
Readonly
versionThe UUID version number.
Static
Readonly
FIELD_The names of UUID internal fields.
Note that these internal fields from the obsolete RFC 4122 are no longer used in the current RFC 9562.
3.0
Static
Readonly
FIELD_The sizes of UUID internal fields.
Note that these internal fields from the obsolete RFC 4122 are no longer used in the current RFC 9562.
3.0
Static
Readonly
NILA nil UUID object.
v3.4.0
Static
Private
_mathPRNGReturns an unsigned x
-bit random integer.
An unsigned integer ranging from 0 to 53, inclusive.
An unsigned x
-bit random integer (0 <= f(x) < 2^x
).
Static
Private
_stateThe persistent internal state for UUIDv1 and UUIDv6 creation.
Tests if two UUID objects are equal.
true
if two UUID objects are equal.
Static
Private
_binStatic
Private
_getStatic
Private
_getStatic
Private
_hexStatic
genStatic
genStatic
genStatic
generateStatic
parseStatic
resetStatic
use
The UUID object type.