Java Collection framework interface macro structure:
The Java Collection framework is a beautifully designed collection framework that provides great help for Java programming and is accompanied by efficient implementation. This allows interaction between modules through interfaces, so thatProgramGreat scalability. the Java Collection framework is included in the java standard library, and is supported anywhere that supports Java.
Notes:
The sublist method of the list interface is a list view, that is, all operations on sublist will work on the original list object. similarly, the synchronizedlist factory encapsulates the original list into a synchronous list instead of creating a new list and synchronizing it. therefore, after a list object is passed as a parameter to synchronizedlist, the original list object is no longer used.
The implementation of the List interface arraylist class provides a fast and effective iterator. Each arraylist object is associated with an iterator. When an iteration child is obtained, if the original object is modified, concurrentmodificationexception will be triggered. arraylist saves this int number to record the number of arraylist modifications. When iterate is accessed, it compares the number of modifications made when iterater is created with the number of arraylist modifications, the exception is thrown.