public final class UuidUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static UUID |
fromFlatString(String str)
Parses a UUID from a hexadecimal string without hyphens.
|
static UUID |
fromString(String str)
Parses a UUID from a hexadecimal string with hyphens.
|
static String |
toFlatString(UUID uuid)
Converts a UUID to a hexadecimal string without hyphens.
|
static String |
toString(UUID uuid)
Converts a UUID to a hexadecimal string with hyphens.
|
public static UUID fromString(String str)
str - a hexadecimal stringstr as a UUIDpublic static UUID fromFlatString(String str)
str - a 32-digit hexadecimal stringstr as a UUIDpublic static String toString(UUID uuid)
This method uses the FastUUID library for faster serialization in Java 8.
uuid - a UUIDuuid as a hexadecimal stringFastUUID.toString(UUID)public static String toFlatString(UUID uuid)
This method uses the FastUUID library for faster serialization in Java 8.
uuid - a UUIDuuid as a hexadecimal string without hyphensFastUUID.toString(UUID)Copyright © 2021. All rights reserved.