Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 705 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 705 Bytes

human-readable-ids-java

A Java id generator to produce random human-readable identifiers like 'fast-elephant-42'

Maven

<dependency>
    <groupId>com.github.kkuegler</groupId>
    <artifactId>human-readable-ids-java</artifactId>
    <version>0.3</version>
</dependency>

Use

// create the generator once and use it any number of times, even concurrently across threads
HumanReadableIdGenerator idGen = new PermutationBasedHumanReadableIdGenerator();
String id = idGen.generate();

Acknowledgments

This project is based on the idea and word lists of human-readable-ids.js