If the elements of an enumerated type are used primarily in sets, it is traditional to use the int enum pattern (Item 34), assigning a different power of 2 to each ...
As their names imply, EnumSet implements Set and EnumMap implements Map, so they can generally be used anywhere those interfaces apply and generally support the methods and contracts of those ...
// Parameter is bitwise OR of zero or more STYLE_ constants public void applyStyles(int styles) { ... } This representation lets you use the bitwise OR operation to combine several constants into a ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results