public class UniqueIdGenerator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JAVA_UTIL_CLUSTERID |
Modifier and Type | Method and Description |
---|---|
static Date |
getDate(long uniqueId)
Find out when the ID was generated.
|
static Date |
getDate19(long uniqueId)
Find out when the ID was generated.
|
static long |
getUniqueId()
ID format will be 1234567890123.999.99 (no dots - only there for clarity - the number is a long).
|
static long |
getUniqueId19()
ID format will be 1234567890123.9999.99 (no dots - only there for clarity - the number is a long).
|
public static final String JAVA_UTIL_CLUSTERID
public static long getUniqueId()
public static long getUniqueId19()
public static Date getDate(long uniqueId)
uniqueId
- long unique ID that was generated from the .getUniqueId() APIpublic static Date getDate19(long uniqueId)
uniqueId
- long unique ID that was generated from the .getUniqueId19() APICopyright © 2023. All rights reserved.