public class UuidUtils extends Object
| Constructor and Description |
|---|
UuidUtils() |
| Modifier and Type | Method and Description |
|---|---|
static UUID |
arrayToUuid(byte[] bytes,
int index)
Convert part of a byte array to a UUID.
|
static String |
formatUUID(UUID uuid)
Convert a standard Java UUID to the ST1204 text representation.
|
static UUID |
parseUUID(String identifier)
Parse an ST1204 style identifier to a standard Java UUID.
|
static byte[] |
uuidToArray(UUID uuid)
Get the content of a UUID as a byte array.
|
public static UUID parseUUID(String identifier)
identifier - the identifier to convert.public static byte[] uuidToArray(UUID uuid)
uuid - the UUID to convertpublic static UUID arrayToUuid(byte[] bytes, int index)
bytes - the byte arrayindex - the offset into the byte array where the UUID should be read fromCopyright © 2020 West Ridge Systems. All rights reserved.