Collection interfaces in java

Collection interfaces:

Collection interfaces are abstract data types that represent collections and allow collections to be manipulated independently of the details of their representation.

Collection interfaces are given below:

1. Collection interface:

Collection interface is the root interface in the collection hierarchy. It declares the core methods for all collections.

2. List interface:

A List represents an ordered or sequenced group of elements. It may contain duplicate elements. It extends the collection interface.

3. Set interface:

A set represents a group of elements which can’t contain a duplicate element. It extends the collection interface.

4. SortedSet interface:

SortedSet interface extends Set interface. SortedSet  interface maintain ascending order in its elements.

5. Map interface:

A map represents an object with key value pair.  A map cannot contain duplicate keys and one key can map to at most one value.

6. Map.Entry Interface:

It provides the facility to work with a map entry.

7. SortedMap interface:

SortedMap interface extends Map interface. It maintains its entries in ascending key order.

8. Queue interface:

Queue represents a collection for holding elements prior to processing.

9. Deque interface:

Deque interface provides the methods to manipulate double-ended-queue or deque. A deque represents a linear collection of elements that support insertion, retrieval and removal of elements at both ends.

10. Enumeration interface:

It provides the methods to get a series of elements from a collection of object taking one at a time.
 
Next Topic: Collection interface in java with example.
Previous Topic: Collection framework in java.