public class UUIDTools
extends java.lang.Object
Constructor and Description |
---|
UUIDTools() |
Modifier and Type | Method and Description |
---|---|
static java.util.UUID |
fromByteArray(byte[] bytes)
Creates an ID from a byte representation.
|
static java.util.UUID |
getNameBasedUUID(java.util.UUID namespace,
java.lang.String name)
Generates name-based URIs according to Version 5 (SHA-1).
|
static byte[] |
toByteArray(java.util.UUID id)
Returns the bytes representing the id.
|
public static java.util.UUID getNameBasedUUID(java.util.UUID namespace, java.lang.String name)
namespace
- Namespace UUIDname
- Actual name to be encoded in UUIDpublic static java.util.UUID fromByteArray(byte[] bytes)
bytes
- byte representation of the id.public static byte[] toByteArray(java.util.UUID id)