public class UUID
extends java.lang.Object
| Constructor and Description |
|---|
UUID() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
uuid()
Generate a RFC4122, version 4 ID.
|
static java.lang.String |
uuid(int len)
Generate a random uuid of the specified length.
|
static java.lang.String |
uuid(int len,
int radix)
Generate a random uuid of the specified length, and radix.
|
public static java.lang.String uuid(int len)
len - the desired number of characterspublic static java.lang.String uuid(int len,
int radix)
len - the desired number of charactersradix - the number of allowable values for each character (must be <=
62)public static java.lang.String uuid()