public final class CombUtil extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static long |
getPrefix(UUID comb)
Returns the prefix from a Prefix COMB.
|
static java.time.Instant |
getPrefixInstant(UUID comb)
Returns the instant from a Prefix COMB.
|
static long |
getSuffix(UUID comb)
Returns the suffix from a Suffix COMB.
|
static java.time.Instant |
getSuffixInstant(UUID comb)
Returns the instant from a Suffix COMB.
|
public static long getPrefix(UUID comb)
The value returned is equivalent to the number of milliseconds since 1970-01-01 (Unix epoch).
comb - a Prefix COMBpublic static long getSuffix(UUID comb)
The value returned is equivalent to the number of milliseconds since 1970-01-01 (Unix epoch).
comb - a Suffix COMBpublic static java.time.Instant getPrefixInstant(UUID comb)
comb - a Prefix COMBInstantpublic static java.time.Instant getSuffixInstant(UUID comb)
comb - a Suffix COMBInstantCopyright © 2024. All rights reserved.