public class UniqueIdCreator
extends java.lang.Object
| Constructor and Description |
|---|
UniqueIdCreator() |
| Modifier and Type | Method and Description |
|---|---|
static long |
createCounter()
Increases the process counter that is used in
createId(). |
static java.lang.String |
createId()
Creates a unique id based on a prefix which is built one time per process.
|
static java.lang.String |
createRandomId()
Creates a unique id based on current time stamp, random number and process counter.
|
static java.lang.String |
createUUID()
Creates a UUID according to UUID management of Java 1.7.
|
public static java.lang.String createId()
public static java.lang.String createRandomId()
public static long createCounter()
createId().public static java.lang.String createUUID()
createRandomId() is used for creating
the id.Copyright © CaptainCasa Gmbh. All Rights Reserved.