Package com.github.kkuegler
Class PermutationBasedHumanReadableIdGenerator
- java.lang.Object
-
- com.github.kkuegler.AbstractHumanReadableIdGenerator
-
- com.github.kkuegler.PermutationBasedHumanReadableIdGenerator
-
- All Implemented Interfaces:
HumanReadableIdGenerator
public class PermutationBasedHumanReadableIdGenerator extends AbstractHumanReadableIdGenerator
A generator for human-readable ids.
This implementation tries to avoid re-using individual parts of the id, i.e. it will not generate 'happy-tiger-42' and 'happy-ant-42' consecutively. To do this it uses permutations of the word lists of each part of the id.
For small numbers of generated ids this makes the ids even more distinguishable.
-
-
Field Summary
-
Fields inherited from class com.github.kkuegler.AbstractHumanReadableIdGenerator
adjectives, animals, numbers, random
-
-
Constructor Summary
Constructors Constructor Description PermutationBasedHumanReadableIdGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringgenerate()-
Methods inherited from class com.github.kkuegler.AbstractHumanReadableIdGenerator
randomize
-
-