forked from coder2hacker/Explore-open-source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CollectionClasses.java
49 lines (47 loc) · 1.5 KB
/
CollectionClasses.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
public class CollectionClasses {
public static void main(String[] args) {
/*
* 1. AbstractCollection:
* Implements most of the collection interface.
*
* 2. AbstractList:
* Extends AbstractCollection and implements most of the List interface.
*
* 3. AbstractQueue:
* Extends AbstractCollection and implements most of the Queue interface.
*
* 4. AbstractSequentialList:
* Extends AbstractList for use by a collection that uses sequential rather than
* random access of the elements.
*
* 5. LinkedList:
* Implements a linked list by extending AbstractSequentialList.
*
* 6. ArrayList:
* Implements a dynamic array by extending AbstractList.
*
* 7. ArrayDeque:
* Implements a dynamic double ended queue by extending AbstractCollection
* and implementing the Deque interface.
*
* 8. AbstractSet:
* Extends AbstractCollection and implements most of the Set interface.
*
* 9. EnumSet:
* Extends AbstractSet for use with enum elements.
*
* 10. HashSet:
* Extends AbstractSet for use with a Hash table.
*
* 11. LinkedHashSet:
* Extends HashSet to allow insertion-order iteration.
*
* 12. PriorityQueue:
* Extends AbstractQueue to support a priority based queue.
*
* 13. TreeSet:
* Implements a Set sorted in a Tree. Extends AbstractSet.
*
*/
}
}