idgenerators

Id generators for java.

License

License

GroupId

GroupId

com.emiperez.commons
ArtifactId

ArtifactId

idgenerators
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

idgenerators
Id generators for java.
Project URL

Project URL

https://github.com/emiperez/idgenerators
Source Code Management

Source Code Management

https://github.com/emiperez/idgenerators

Download idgenerators

How to add to project

<!-- https://jarcasting.com/artifacts/com.emiperez.commons/idgenerators/ -->
<dependency>
    <groupId>com.emiperez.commons</groupId>
    <artifactId>idgenerators</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.emiperez.commons/idgenerators/
implementation 'com.emiperez.commons:idgenerators:0.2.0'
// https://jarcasting.com/artifacts/com.emiperez.commons/idgenerators/
implementation ("com.emiperez.commons:idgenerators:0.2.0")
'com.emiperez.commons:idgenerators:jar:0.2.0'
<dependency org="com.emiperez.commons" name="idgenerators" rev="0.2.0">
  <artifact name="idgenerators" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.emiperez.commons', module='idgenerators', version='0.2.0')
)
libraryDependencies += "com.emiperez.commons" % "idgenerators" % "0.2.0"
[com.emiperez.commons/idgenerators "0.2.0"]

Dependencies

test (1)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter jar 5.7.0

Project Modules

There are no modules declared in this project.

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().

Versions

Version
0.2.0
0.1.1