Skip to content

Latest commit

 

History

History

enum

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Utility to encode list of numbers into string. For that in memory table is created where each number represents a character. To add some security custom seed must be set.

Highly customizable to set own characters or include just strings or even only numbers.

See

And usage is described at

Usually I create my enums as:

public enum MyEnum {
    first,
    second,
    third;

    static final Function<String, Optional<MyEnum>> LOOKUP = EnumLookupBuilder.buildCaseInsensitive(MyEnum.class);
    static Optional<MyEnum> lookup(String key) {
        return LOOKUP.apply(key);
    }
}