Java Collection framework interface macro structure:

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.