public final class LiUUIDUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
toBytes(java.lang.String uuidString)
Converts a
UUID String to a byte array. |
static byte[] |
toBytes(java.util.UUID uuid)
Converts a
UUID to a byte array. |
static java.util.UUID |
toUUID(byte[] bytes)
Converts a byte array into a
UUID . |
public static final byte[] toBytes(java.util.UUID uuid)
UUID
to a byte array.uuid
- public static final byte[] toBytes(java.lang.String uuidString)
UUID
String to a byte array.uuidString
- java.lang.IllegalArgumentException
- if name does not conform to the string representation as described in
UUID.toString()
.public static final java.util.UUID toUUID(byte[] bytes)
UUID
.bytes
-