EnumSet and EnumMap
TechEmpower
FEBRUARY 14, 2017
This article discusses java.util.EnumSet. and java.util.EnumMap. from Java's standard libraries. What are they? When should they be used? Could the implementations be improved? Could the APIs be improved? Conclusion. What are they? EnumSet. and EnumMap are compact, efficient implementations of the Set and Map interfaces. They have the constraint that their elements/keys come from a single enum type.
Let's personalize your content