public interface MultiCategoryIdentifierGenerator
Modifier and Type | Method and Description |
---|---|
java.lang.String |
newIdentifier(java.lang.String category)
Returns a new identifier for the given category.
|
long |
nextIdentifier(java.lang.String category)
Returns a new identifier which is different to the last one
for the given category.
|
java.lang.String newIdentifier(java.lang.String category)
category
- An arbitrary but unique name for the ID sequence (must not be null).IdentifierGenerationException
- if the category cannot be found of ID generation fails for any reason.long nextIdentifier(java.lang.String category)
category
- An arbitrary but unique name for the ID sequence (must not be null).IdentifierGenerationException
- if the category cannot be found of ID generation fails for any reason.