public enum IdGenerationStrategy extends Enum<IdGenerationStrategy>
Enum Constant and Description |
---|
RANDOM |
SEQUENTIAL |
Modifier and Type | Method and Description |
---|---|
abstract DDId |
generate() |
static IdGenerationStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IdGenerationStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IdGenerationStrategy RANDOM
public static final IdGenerationStrategy SEQUENTIAL
public static IdGenerationStrategy[] values()
for (IdGenerationStrategy c : IdGenerationStrategy.values()) System.out.println(c);
public static IdGenerationStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract DDId generate()