|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jlog2.util.UuidHandler
public class UuidHandler
This class creates unique uuids, or uuids that are difficult to duplicate. This is similar to the Java UUID creator.
| Constructor Summary | |
|---|---|
UuidHandler()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getUuid(int uuidLength)
Create a new uuid that is a subset or concatenation of the Java UUID generator. |
static java.lang.String |
getUuid(int uuidLength,
long seed)
Create a new uuid that is randomly generated round the entered seed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UuidHandler()
| Method Detail |
|---|
public static java.lang.String getUuid(int uuidLength)
throws java.lang.Exception
uuidLength - the number of characters in the seedUuid.
java.lang.Exception - any error.
public static java.lang.String getUuid(int uuidLength,
long seed)
throws java.lang.Exception
uuidLength - the number of characters in the uuid.seed - the value to seed the uuid creator with.
java.lang.Exception - any error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||