I\'m trying to weigh the pros and cons of using an EnumMap over a HashMap. Since, I will always be looking up using a String, it seems tha
EnumMap
HashMap
String
First of all, all you keys are final immutable. You should definitely use EnumMap.
This is like Hash in Ruby:
options = { :font_size => 10, :font_family => "Arial" }
:font_size is the symbol in Ruby, the final static counterpart in Java.
:font_size