Get the most significant 64 bits of this 128 bit UUID.
Get the least significant 64 bits of this 128 bit UUID.
Compare based on the 128 bit value which will naturally result in sorts by created timestamp.
Return if the specified object is a Uuid with the same 128 bits.
Hashcode is defined as bitsHi ^ bitsLow
Get an immutable representation of this instance or throw NotImmutableErr if this object cannot be represented as an immutable:
Return the string representation of this UUID. See class header for string format.
Trap a dynamic call for handling. Dynamic calls are invoked with the -> shortcut operator:
a->x a.trap("x", null)
a->x() a.trap("x", null)
a->x = b a.trap("x", [b])
a->x(b) a.trap("x", [b])
a->x(b, c) a.trap("x", [b, c])
The default implementation provided by Obj attempts to use reflection. If name maps to a method, it is invoked with the specified arguments. If name maps to a field and args.size is zero, get the field. If name maps to a field and args.size is one, set the field and return args[0]. Otherwise throw UnknownSlotErr.
This method called whenever an it-block is applied to an
object. The default implementation calls the function with this
,
and then returns this
.
Static
echoWrite x.toStr
to standard output followed by newline. If x
is null then print "null". If no argument is provided then
print an empty line.
Optional
x: JsObjStatic
fromParse a UUID according to the string format defined in the class header documentation. If invalid format and checked is false return null, otherwise throw ParseErr.
Optional
checked: booleanStatic
makeStatic
make
Universally Unique Identifier. UUIDs are 128-bit identifiers which are unique across space and time making them ideal for naming without a central naming authority. Fantom's UUIDs are loosely based on RFC 4122 with the following parts used in the generation:
The sequence number is initialized from a randomized number, and helps protect against collisions when the system clock is changed. The node address is ideally mapped to the MAC address if available, or the IP address hashed with a random number.
No guarantee is made how the bytes are laid out. Future versions might hash these bytes, or use alternate mechanisms.
The string format for the UUID follows the canonical format of 32 hexadecimal digits displayed in five groups for "8-4-4-4-12". For example: