public enum CommitIdGenerator extends java.lang.Enum<CommitIdGenerator>
Enum Constant and Description |
---|
CUSTOM
Provided by user
|
RANDOM
Non-blocking algorithm based on UUID.
|
SYNCHRONIZED_SEQUENCE
Generates neat, sequential commit identifiers.
|
Modifier and Type | Method and Description |
---|---|
abstract java.util.Comparator<CommitMetadata> |
getComparator() |
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 final CommitIdGenerator CUSTOM
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 nullpublic abstract java.util.Comparator<CommitMetadata> getComparator()