Class 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.
    • Constructor Detail

      • PermutationBasedHumanReadableIdGenerator

        public PermutationBasedHumanReadableIdGenerator()
    • Method Detail

      • generate

        public java.lang.String generate()