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:
Collection interface is the root interface in the collection hierarchy. It declares the core methods for all collections.
A List represents an ordered or sequenced group of elements. It may contain duplicate elements. It extends the collection interface.
A set represents a group of elements which can’t contain a duplicate element. It extends the collection interface.
SortedSet interface extends Set interface. SortedSet interface maintain ascending order in its elements.
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.
It provides the facility to work with a map entry.
SortedMap interface extends Map interface. It maintains its entries in ascending key order.
Queue represents a collection for holding elements prior to processing.
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.
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.