Java Collections Framework
6 May 2019 OSU CSE 1
Java Collections Framework 6 May 2019 OSU CSE 1 Overview The - - PowerPoint PPT Presentation
Java Collections Framework 6 May 2019 OSU CSE 1 Overview The Java Collections Framework (JCF) is a group of interfaces and classes similar to the OSU CSE components The similarities will become clearly evident from examples See
6 May 2019 OSU CSE 1
6 May 2019 OSU CSE 2
6 May 2019 OSU CSE 3
Set List Queue Collection Sorted- Set Sorted- Map Iterable Deque Navigable- Set Map Navigable- Map
6 May 2019 OSU CSE 4
Set List Queue Collection Sorted- Set Sorted- Map Iterable Deque Navigable- Set Map Navigable- Map
6 May 2019 OSU CSE 5
Set List Queue Collection Sorted- Set Sorted- Map Iterable Deque Navigable- Set Map Navigable- Map
6 May 2019 OSU CSE 6
Set List Queue Collection Sorted- Set Sorted- Map Iterable Deque Navigable- Set Map Navigable- Map
6 May 2019 OSU CSE 7
6 May 2019 OSU CSE 8
6 May 2019 OSU CSE 9
6 May 2019 OSU CSE 10
6 May 2019 OSU CSE 11
6 May 2019 OSU CSE 12
6 May 2019 OSU CSE 13
6 May 2019 OSU CSE 14
6 May 2019 OSU CSE 15
6 May 2019 OSU CSE 16
6 May 2019 OSU CSE 17
6 May 2019 OSU CSE 18
6 May 2019 OSU CSE 19
6 May 2019 OSU CSE 20
6 May 2019 OSU CSE 21
6 May 2019 OSU CSE 22
6 May 2019 OSU CSE 23
6 May 2019 OSU CSE 24
6 May 2019 OSU CSE 25
6 May 2019 OSU CSE 26
Collection Iterable Abstract- Collection
Object
6 May 2019 OSU CSE 27
6 May 2019 OSU CSE 28
6 May 2019 OSU CSE 29
Set HashSet AbstractSet TreeSet Collection Iterable Abstract- Collection Object
6 May 2019 OSU CSE 30
6 May 2019 OSU CSE 31
6 May 2019 OSU CSE 32
6 May 2019 OSU CSE 33
6 May 2019 OSU CSE 34
6 May 2019 OSU CSE 35
List ArrayList AbstractList LinkedList Collection Iterable Abstract- Collection Object
6 May 2019 OSU CSE 36
6 May 2019 OSU CSE 37
6 May 2019 OSU CSE 38
6 May 2019 OSU CSE 39
HashMap TreeMap Map AbstractMap Object
6 May 2019 OSU CSE 40
6 May 2019 OSU CSE 41
6 May 2019 OSU CSE 42
6 May 2019 OSU CSE 43
6 May 2019 OSU CSE 44
6 May 2019 OSU CSE 45
6 May 2019 OSU CSE 46
6 May 2019 OSU CSE 47
6 May 2019 OSU CSE 48
Adds the specified element to this set if it is not already present (optional operation). More formally, adds the specified element e to this set if the set contains no element e2 such that (e==null ? e2==null : e.equals(e2)). If this set already contains the element, the call leaves the set unchanged and returns false. In combination with the restriction on constructors, this ensures that sets never contain duplicate elements. The stipulation above does not imply that sets must accept all elements; sets may refuse to add any particular element, including null, and throw an exception, as described in the specification for Collection.add. Individual set implementations should clearly document any restrictions on the elements that they may contain. Throws: UnsupportedOperationException - if the add operation is not supported by this set ClassCastException - if the class of the specified element prevents it from being added to this set NullPointerException - if the specified element is null and this set does not permit null elements IllegalArgumentException - if some property of the specified element prevents it from being added to this set
6 May 2019 OSU CSE 49
6 May 2019 OSU CSE 50
6 May 2019 OSU CSE 51
6 May 2019 OSU CSE 52
6 May 2019 OSU CSE 53
6 May 2019 OSU CSE 54
6 May 2019 OSU CSE 55
6 May 2019 OSU CSE 56
6 May 2019 OSU CSE 57
6 May 2019 OSU CSE 58
6 May 2019 OSU CSE 59
6 May 2019 OSU CSE 60
– http://docs.oracle.com/javase/8/docs/technotes/guides/collections/
– http://osu.worldcat.org/title/effective-java/oclc/1018480592
6 May 2019 OSU CSE 61