public final class UUIDTools extends Object
Modifier and Type | Field and Description |
---|---|
static int |
UUID_BYTE_REP_LENGTH
Length of a byte array representing a UUID.
|
Modifier and Type | Method and Description |
---|---|
static UUID |
fromByteArray(byte[] bytes)
Creates an ID from a byte representation.
|
static UUID |
getNameBasedUUID(UUID namespace,
String name)
Generates name-based URIs according to Version 5 (SHA-1).
|
static byte[] |
toByteArray(UUID id)
Returns the bytes representing the id.
|
public static final int UUID_BYTE_REP_LENGTH
public static UUID getNameBasedUUID(UUID namespace, String name)
namespace
- Namespace UUIDname
- Actual name to be encoded in UUIDpublic static UUID fromByteArray(byte[] bytes)
bytes
- byte representation of the id.UUID
instanceCopyright © 2018 CoR-Lab. All rights reserved.