enum-map

Might EnumMap be considered a reasonable alternative to Java beans?

Curious if anybody has considered using EnumMap in place of Java beans, particularly "value objects" (with no behavior)? To me it seems that one advantage would be that the name of a "property" would be directly accessible from the backing Enum, with no need for reflection, and therefore I'd assume it would be faster. ...

Equivalent in Java of EnumMap for use with enum type values?

I'm looking for a class like EnumMap, except for enum type values (ie. EnumValueMap<K,V extends Enum<V>>). http://java.sun.com/javase/6/docs/api/java/util/EnumMap.html Edit If I was mapping, say, a few million Objects to 10 enum types, I imagined it would at least be possible to create a more memory-efficient implementation than just ...