public class Uuids
extends java.lang.Object
UUIDs.| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.String |
format8x4(java.util.UUID uuid) |
Returns the given UUID formatted as a string of 8x4 hexadecimal digits separated by dashes.
|
static java.lang.String |
formatBase58(java.util.UUID uuid) |
Returns the given UUID formatted as a Base-58-encoded string.
|
static java.util.UUID |
fromBytes(byte[] bytes) |
Returns a type 3 (name-based) UUID based on the given bytes.
|
static java.util.UUID |
fromString(java.lang.String string) |
Returns a type 3 (name-based) UUID based on the given string.
|
static java.util.UUID |
parse8x4(java.lang.String string) |
Parses an UUID from the given string of 8x4 hexadecimal digits separated by dashes.
|
static java.util.UUID |
parseBase58(java.lang.String string) |
Parses an UUID from the given Base-58-encoded string.
|
public static java.lang.String format8x4(java.util.UUID uuid)
java.lang.IllegalArgumentException - if uuid is nullpublic static java.lang.String formatBase58(java.util.UUID uuid)
java.lang.IllegalArgumentException - if uuid is nullpublic static java.util.UUID fromBytes(byte[] bytes)
java.lang.IllegalArgumentException - if bytes are null or emptypublic static java.util.UUID fromString(java.lang.String string)
java.lang.IllegalArgumentException - if string is null or emptypublic static java.util.UUID parse8x4(java.lang.String string)
java.lang.IllegalArgumentException - if string is null or emptypublic static java.util.UUID parseBase58(java.lang.String string)
java.lang.IllegalArgumentException - if string is null