Collection Interfaces
The interfaces provided in the Collection Framework allow you to access and manipulate elements in a collection in a manner that is independent of the implementation of the collection. There are two groups of interfaces in the Collection Framework, one that begins with the Collection interface and a second that begins with the Map inter face. These are shown in Figures 19.1 and 19.2, respectively.
Figure 19.1. Inheritance hierarchy for the Collection interface .
Figure 19.2. Inheritance hierarchy for the Map interface.
The reason there are two inheritance hierarchies is that while SortedSet is a special kind ...
Get PURE Java™ 2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.