EnumSet and EnumMap
TechEmpower
FEBRUARY 14, 2017
This article discusses java.util.EnumSet. private static E [] getUniverse ( Class elementType ) {. There is a single backing array instance of those Month constants living in memory somewhere ( a private field in the Class object for Month ), but it wouldn't be safe to pass that array directly to every caller of values().
Let's personalize your content