Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/emiperez/idgenerators

Id generators for java
https://github.com/emiperez/idgenerators

generics idgenerator java

Last synced: about 1 month ago
JSON representation

Id generators for java

Awesome Lists containing this project

README

        

# idgenerators
Id Generators for Java.

Some classes that implement the interface `IdGenerator` where T is the type returned by its only method getId():

Class | Description
------------ | -------------
ConstantIdGenerator | This IdGenerator always returns the same id, which is defined on the constructor.
DateTimeIdGenerator | This IdGenerator returns a String built by the Date and Time and, if there already was another id at the same time, a sequential number appended.
SequentialIdGenerator | A thread safe IdGenerator based on AtomicInteger.
UuidIdGenerator | An IdGenerator based on UUID.randomUUID().