identifire

Id Generator toolkit an Object oriented way for generate ids

License

License

Categories

Categories

IDE Development Tools
GroupId

GroupId

com.alidahaghin
ArtifactId

ArtifactId

identifire
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

identifire
Id Generator toolkit an Object oriented way for generate ids
Project URL

Project URL

https://www.github.com/ali-dahaghin/identiFire
Source Code Management

Source Code Management

https://github.com/ali-dahaghin/identifire

Download identifire

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

identiFire

Id Generator toolkit- an Object oriented way for generate ids.

dependency

<dependency>
    <groupId>com.alidahaghin</groupId>
    <artifactId>identifire</artifactId>
    <version>1.0.0</version>
</dependency>

simple usage

List<FormatElement> formatElements = new ArrayList<FormatElement>();
formatElements.add(new UpperCaseFormatElement());
formatElements.add(new LowerCaseFormatElement());
formatElements.add(new IntegerFormatElement());
formatElements.add(new IntegerFormatElement());
formatElements.add(new ParameterFormatElement("firstKey"));
formatElements.add(new IntegerFormatElement());

IdFire idFire = new FormattedIdFire(new SetStorage(), formatElements);

Options options = Options.getEmpty();
options.setParam("firstKey", "_A10_");
System.out.println(idFire.generate(options));
System.out.println(idFire.generate(options));
System.out.println(idFire.generate(options));
System.out.println(idFire.generate(options));
System.out.println(idFire.generate(options));
System.out.println(idFire.generate(options));
System.out.println(idFire.generate(options));

output:

Mu83_A10_0
Ju55_A10_7
Hx65_A10_7
Az23_A10_9
Cr30_A10_6
Iz06_A10_3
Jm89_A10_2

Versions

Version
1.0.0