anonymous wrote : and reduces node memory size (no need to add new boolean variables) - an
boolean is hold on a bit. An RegularEnumSet aggregates an long (64 bit) + some caching
arrays (other bits as well). From a memory POV it is optimal to aggregate booleans
directly (than EnumSets wrapping enums).
anonymous wrote : Reduces future changes of the Node interface (no need to add methods for
a new feature) - code would be less readable; also I don't think this is an proper
enum usage: i.e. define bounded types(the boolean variables are not logically related)
-> enhance readability
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080542#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...