Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/emiperez/idgenerators
- Owner: emiperez
- Created: 2020-06-08T16:02:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-22T16:39:18.000Z (about 4 years ago)
- Last Synced: 2023-07-26T21:42:30.198Z (over 1 year ago)
- Topics: generics, idgenerator, java
- Language: Java
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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().