Java Collection Framework

Source: Internet
Author: User

Before Java2, Java had the Dictionary,vector,stack and properties these classes are used to store and manipulate an array of objects.

Interface: is an abstract data type that represents a collection. The interface allows to assemble the details of the manipulator represented in the belly. In object-oriented languages, interfaces usually form a hierarchy.

Implementation: is a concrete implementation of the collection interface, they are reusable data structures.

Algorithm: is a useful calculation of the method execution in the object that implements the collection interface.

Collection interface

Collection allows the use of a set of objects, which is the root interface of the collection hierarchy.

List inheritance stores an ordered combination of elements with collection and a list instance.

Set inheritance and collection, is a collection that does not contain duplicate elements.

SortedSet inheritance and set save an ordered collection.

Map maps a unique key to a value.

Map. Entry describes an element in a map (a key-value pair)

SortedMap inherit from map, keep key in ascending order

Emumeration This is a traditional interface and a traditional defined method through which you can enumerate the elements in a collection of objects, a traditional interface that has been superseded by iterators.

Java Collection 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.