identifire

Id Generator toolkit an Object oriented way for generate ids

Лицензия

Лицензия

Категории

Категории

IDE Инструменты разработки
Группа

Группа

com.alidahaghin
Идентификатор

Идентификатор

identifire
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

identifire
Id Generator toolkit an Object oriented way for generate ids
Ссылка на сайт

Ссылка на сайт

https://www.github.com/ali-dahaghin/identiFire
Система контроля версий

Система контроля версий

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

Скачать identifire

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.0.0