public final class SimpleId extends Id implements Serializable
id, SANITY_CHECK| Modifier and Type | Method and Description |
|---|---|
static String |
alphanumeric(int length)
Generates a random sequence of alphanumeric characters of length
length using a new pseudorandom number
generator (new Random()) |
static String |
alphanumeric(Random random,
int length)
Generates a random sequence of alphanumeric characters of length
length using the provided random number
generator |
static SimpleId |
random()
Return an Id which uses 32 random alphanumeric characters as its value
|
public SimpleId(String id)
id - public SimpleId(UUID id)
public static SimpleId random()
public static final String alphanumeric(int length)
length using a new pseudorandom number
generator (new Random())length - the length of the string to generate (must be > 0)lengthpublic static final String alphanumeric(Random random, int length)
length using the provided random number
generatorrandom - the random number generator to use (must not be null)length - the length of the string to generate (must be > 0)lengthCopyright © 2016. All rights reserved.