The UUID object provides utilities for working with universally unique identifiers (UUIDs). It supports operations to retrieve the byte array or string representation of a UUID.
UUID
Array
toBytes()
Get the byte array representation of the UUID.
String
toString()
Get the string representation of the UUID.
Returns: Array the byte array representation of the UUID.
Sample
uuid.toBytes();
Returns: String the string representation of the UUID.
Last updated 1 year ago
Was this helpful?
uuid.toString();