Effective Java Item 32: Use EnumSet instead of bit fields Posted on Wed, 31 Dec 2008 22:32:27 +0000 by Dhruba Bandopadhyay • 4 Comments A small tidbit of information which I came across in Effective Java Item 32 that I thought was worth a mention due to the fact that it is a little new in Java and less commonly found in use. The Old Way – Int enum pattern In the olden days one might have implemented enumeration sets using integers representing binary patterns and bitwise operations on those patterns.
Read full article from Effective Java Item 32: Use EnumSet instead of bit fields | Dhruba Bandopadhyay
No comments:
Post a Comment