I looked under the hood for EnumSet.allOf and it looks very efficient, especially for enums with less than 64 values.
EnumSet.allOf
Basically all sets share the singl
There is also Class.getEnumConstants()
Class.getEnumConstants()
under the hood they all call values() methods of enum types anyway, through reflection.
values()