Java Collection Framework Diagram

Source: Internet
Author: User

Everyone in the study of Java, the collection framework has a lot of classes, when idle, I tidied up a bit, draw the following 2 diagram. The yellow represents the interface, the green is the abstract class, the blue concrete class. All of the following collection classes implement the iterator interface, which is an interface for iterating through the elements in the collection, consisting mainly of the Hashnext (), Next (), and remove () three methods. One of its sub-interfaces Linkediterator added three methods on top of it, namely Add (), previous (), hasprevious (). That is, if the first iterator interface, then in the collection of elements, you can only traverse backwards, the traversed element will not be traversed, usually the unordered collection is implemented by this interface, such as HashSet,HashMap, and those elements of the ordered collection , the implementation of the general is the Linkediterator interface, the implementation of this interface can be a collection of two-way traversal, either through next () access to the next element, but also through previous () access to the previous element, such as ArrayList.

Java Collection Framework Diagram

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.