public class UUIDHelper extends Object
Constructor and Description |
---|
UUIDHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
equals(UUID uuid1,
UUID uuid2)
This will check for the equality between two UUIDs while guarding against NullPointerExceptions.
|
static byte[] |
getBytesFromUUID(UUID uuid)
Converts a UUID into bytes.
|
static UUID |
getUUIDFromBytes(byte[] bytes)
Converts bytes into a UUID.
|
public static boolean equals(UUID uuid1, UUID uuid2)
public static byte[] getBytesFromUUID(UUID uuid)
uuid
- the UUID to convertpublic static UUID getUUIDFromBytes(byte[] bytes)
bytes
- the bytes to convertCopyright © 2021. All rights reserved.