1. Introduction
A container is an object that processes a complex set of elements in a single unit. The use of the set frame can theoretically reduce the programming workload, improve the speed and quality of the program, after all, the class library to help us implement the set to a certain extent, the best. In Java, a collection framework is implemented for the user through Java.util, which uses a unified architecture to represent and manipulate all collections, including the following:
- Interface: Represents the abstract data type of a collection, which separates the specific implementation of the container from the provided interface;
- Implement: Represents the specific implementation of the collection interface;
- Algorithms: Some generic algorithms that are provided for elements in the collection, such as Find, sort;
2.Java Container class Diagram
In this class diagram contains the iterator iterator, the basic root interface of the container sequence collection, the container list,set,queue and the map, these containers derive some abstract container classes, followed by the JDK through the source of the specific analysis of each container interface, Implementations and their corresponding algorithms, and to study how these are implemented in the JDK, here is the start.
Java Container Classes Overview