Skip to main content

UUID

A class that represents an immutable universally unique identifier (UUID). A UUID represents a 128-bit value.

Reference

Static methods

MethodSignatureReturn TypeDescription
v4v4()stringGenerates a random UUID (version 4) and returns it as a string
nilnil()stringReturns the nil UUID (00000000-0000-0000-0000-000000000000)
isValidisValid(value : string)boolReturns true if the given string is a valid UUID, otherwise false
parseparse(value : string)stringParses the given string as a UUID and returns its canonical string representation