public void addAll(final E[] enumValues, final Function<E, T> mapper) {
        for (E value : enumValues) {
            add(value, mapper.apply(value));
        }
    }
register a value-enum-mapping. Call in static enum class initializer only
main/src/main/java/cgeo/geocaching/utils/EnumValueMapper.java