"Datastructure" The description of the Java collections Framework

Source: Internet
Author: User

The Java Connections FrameWork is a group of class or method and Interfacs in the Java.util package. Its main purpose are to provide a unified framework for implementing common data structure. A collections is an object that contains and other objects,which be called that elements of the collections.  The JCF specifies four general types of collections:list, Queue, Set and Map. A list is a sequence of elements. A Queue is a first-in-first-out collections line Waitingline. A set is an unstructured collections of distinct elements. A map is a collection of the pairs that works like an index or dictionary.



The JCF implements the interfaces with several different data structures. The simplest structure is a indexed structure, that's, an array, which are used by the ArrayList, the arraydeque,the Hash Set, and the hashmapclasses. Other implementations use a linked structure. The Linkedlistclass uses a doubly linked linear structure, the priorityqueueclass uses a heap tree, the Treesetand TreeMap Classes use a linked binary search tree, and the Linkedhashset, andlinkedhashmapclasses use a hybrid linked array Structur E. The specialized Enumsetand enummapclasses use a bit string. These twelve implementations is summarized in Table 4.1.

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvc3himdg0mtkwmtexng==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma== /dissolve/70/gravity/center ">

"Datastructure" The description of the Java collections Framework

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.