Package net.tangly.commons.generator
Interface IdGenerator
- All Known Implementing Classes:
LongIdGenerator
public interface IdGenerator
Identifiers generator to create unique object identifiers.
-
Method Summary
-
Method Details
-
id
long id()new identifier for the application usage.- Returns:
- new unique identifier
-
set
void set(long externalId) Sets the generator based on a new external identifier.- Parameters:
externalId
- new external identifier.
-