The EnumSet and EnumMap are efficient DSs to perform Set and Map operations on Enums (resp.). They are more efficient than merely using a HashSet or HashMap on an enum. And the EnumSet has a few other useful methods too.
jaeson-gram / enumset-and-enummap Goto Github PK
View Code? Open in Web Editor NEWThe EnumSet and EnumMap are efficient DSs to perform operations on Enums. They are more efficient than merely using a HashSet or HashMap on an enum. And the EnumSet has a few other useful methods too.