https://github.com/emiperez/idgenerators
Id generators for java
https://github.com/emiperez/idgenerators
generics idgenerator java
Last synced: 11 months ago
JSON representation
Id generators for java
- Host: GitHub
- URL: https://github.com/emiperez/idgenerators
- Owner: emiperez
- Created: 2020-06-08T16:02:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-22T16:39:18.000Z (over 5 years ago)
- Last Synced: 2025-01-13T15:16:36.882Z (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().