Collection Cheatsheet
Collection Cheatsheet
notation)
EnumMap Map Fixed size Array of 'value' All methods O(1). Likely
objects initialized to full size of (though not guaranteed) to
(sync) underlying enum elements. be faster than their
Keys = A The indexes of the 'value' HashMap counterparts.
single enum array are the enum ordinals. Iterators returned by the
type Null keys are not permitted. collection views are weakly
elements, Maintained in the natural order consistent.
Values = any of their keys (per ordinals, the
object. order in which the enum
constants are declared)