Encodes this UUID
as a Byte
array with 16 elements.
Encodes this UUID
as a Char
array with 36 elements in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
format.
This comparison allows for sanity compatible unsigned ordering
This comparison allows for sanity compatible unsigned ordering
WARNING: JVM sorts UUIDs differently to the rest of the world (languages and databases).
WARNING: JVM sorts UUIDs differently to the rest of the world (languages and databases). This is due to default signed Long ordering and has been marked as a Will Not Fix due to legacy code: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=7025832
Encodes this UUID
as an Int
array with 4 elements.
Returns the least significant 64 bits of this UUID
.
Returns the least significant 64 bits of this UUID
.
Encodes this UUID
as a Long
array with 2 elements.
Returns the most significant 64 bits of this UUID
.
Returns the most significant 64 bits of this UUID
.
Encodes this UUID
as a Short
array with 8 elements.
Returns this UUID
as a String
in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
format.
Returns this UUID
as a String
in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
format.
Hexadecimal characters will be lower-cased.
This method is an optimized drop in replacement for the legacy toString
method.
Writes this UUID
to the provided Byte
array.
Writes this UUID
to the provided Byte
array.
Writes this UUID
to the provided Char
array in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
format.
Writes this UUID
to the provided Int
array.
Writes this UUID
to the provided Int
array.
Writes this UUID
to the provided Long
array.
Writes this UUID
to the provided Long
array.
Alias for string
which implicitly returns a lower-cased String
.
Alias for string
which implicitly returns a lower-cased String
.
Writes this UUID
to the provided Short
array.
Writes this UUID
to the provided Short
array.
Returns this UUID
as a String
in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
format.
Returns this UUID
as a String
in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
format.
Hexadecimal characters will be upper-cased.
Pimp-my-library pattern, wrapping the underlying
java.util.UUID
.This class extends AnyVal, making all the extension methods have little-to-no runtime overhead.
The pimp is complete through an implicit conversion in the Imports trait or the uuid package object.