| 构造器和说明 |
|---|
IdUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
randomUUID()
get a random UUID
|
static String |
simpleUUID()
get a simple random UUID
|
static String |
toString(UUID uuid,
boolean isSimple)
Returns a
String object representing this UUID. |
public static String randomUUID()
public static String simpleUUID()
public static String toString(UUID uuid, boolean isSimple)
String object representing this UUID.
The UUID string representation is as described by this BNF:
UUID = <time_low> "-" <time_mid> "-" <time_high_and_version> "-" <variant_and_sequence> "-" <node> time_low = 4*<hexOctet> time_mid = 2*<hexOctet> time_high_and_version = 2*<hexOctet> variant_and_sequence = 2*<hexOctet> node = 6*<hexOctet> hexOctet = <hexDigit><hexDigit> hexDigit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "A" | "B" | "C" | "D" | "E" | "F"
UUIDCopyright © 2022. All rights reserved.