Skip to content

a lightweight human id generator in java

License

Notifications You must be signed in to change notification settings

jorekai/human-id-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

human-id-java

a lightweight human id generator written in java without any dependencies

How-To Use

<!--Add Dependency to your pom.xml-->
<dependency>
    <groupId>com.github.jorekai</groupId>
    <artifactId>human-id-java</artifactId>
    <version>1.0.0</version>
</dependency>
// Build any Instance of the HumanId Generator
HumanId generator = HumanId.builder().build();
HumanId generatorWithProperties = HumanId.builder()
        .separator(HumanIdSeparator.DASH)
        .limit(100)
        .build();
// Choose any strategy to generate the Ids
String humanId = generator.generate(HumanIdStrategy.EXHAUSTIVE);
String humanId = generator.generate(HumanIdStrategy.NUMBERED, HumanIdSeparator.DASH);

General Constraints

  • adjectives: 131

  • animals: 102

  • verbs: 100

  • numbers (postfix): 1000

  • possibilities: 131 * 102 * 100 * 1000 = 1.336.200.000

Exhaustive Constraints

  • adjectives: 131
  • animals: 102
  • verbs: 100
  • numbers (prefix(exhaustive)): 1000
  • numbers (postfix): 1000
  • possibilities(exhaustive): 1000 * 131 * 102 * 100 * 1000 = 1.3e+12

About

a lightweight human id generator in java

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages