Package com.levigo.jadice.server.util
Class UUIDGenerator
- java.lang.Object
-
- com.levigo.jadice.server.util.UUIDGenerator
-
public final class UUIDGenerator extends Object
A generator for UUIDs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UUIDGenerator.Mode
The mode how the the UUIDs shall be generated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UUIDGenerator.Mode
getMode()
static String
getUUID()
Create a UUID.static void
setMode(UUIDGenerator.Mode mode)
-
-
-
Method Detail
-
getUUID
public static String getUUID()
Create a UUID.- Returns:
- a unique ID
-
getMode
public static UUIDGenerator.Mode getMode()
- Returns:
- the mode how the IDs shall be generated.
-
setMode
public static void setMode(UUIDGenerator.Mode mode)
-
-