项目作者: emiperez

项目描述 :
Id generators for java
高级语言: Java
项目地址: git://github.com/emiperez/idgenerators.git
创建时间: 2020-06-08T16:02:03Z
项目社区:https://github.com/emiperez/idgenerators

开源协议:

下载


idgenerators

Id Generators for Java.

Some classes that implement the interface IdGenerator<T> 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().