public enum CommitIdGenerator extends java.lang.Enum<CommitIdGenerator>
| Enum Constant and Description |
|---|
RANDOM
Fast algorithm based on UUID.
|
SYNCHRONIZED_SEQUENCE
Generates neat sequence of commitId numbers.
|
| Modifier and Type | Method and Description |
|---|---|
static CommitIdGenerator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CommitIdGenerator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommitIdGenerator SYNCHRONIZED_SEQUENCE
JaversRepository.getHeadId().
public static final CommitIdGenerator RANDOM
public static CommitIdGenerator[] values()
for (CommitIdGenerator c : CommitIdGenerator.values()) System.out.println(c);
public static CommitIdGenerator valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null