I have a static class that holds mostly 'final' variables and I have a hashmap that I'm using to speed lookups. The hashmap is created from two arrays that I've sorted by hand into the best order and I want the hashmaps to also be fully defined when the class is loaded. The class is static, most of the variables are static final, since they won't change.
Right now, I have this, which works but is sub-optimal:
I would like the hashmap to be defined in some definite way, but I don't know how to inline a Map definition.
I would like to just be able to do StaticClass.myMap.get("A"); and not have to initialize it with a command. Is this possible?