public class UuidHandler
extends java.lang.Object
Constructor and Description |
---|
UuidHandler() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.