Java's Collection Framework - University of Arizona
Java's Collection Framework
Another use of polymorphism via interfaces
Rick Mercer
1
More useful Polymorphism
wWhere we are at?
-- Considering examples of Java's polymorphism via interfaces
wWhere are we going?
-- Consider a framework that is
? Full of examples of polymorphism through interfaces
? Reusable
? Note: Some of you have seen a few of these slides
2
Outline
w Java's Collection Framework
-- Unified architecture for representing and manipulating collections
w Collection framework contains
-- Interfaces (ADTs): specification not implementation -- Concrete implementations as classes -- Polymorphic Algorithms to search, sort, find, shuffle, ...
w Algorithms are polymorphic:
-- the same method can be used on many different implementations of the appropriate collection interface. In essence, algorithms are reusable functionality.
3
The Core Collection interfaces
there are others
Image from the Java Tutorial
4
Abstract Data Type
wAbstract data type (ADT) is a specification of the behaviour (methods) of a type
-- Specifies method names to add, remove, find -- Specifies if elements are unique, indexed,
accessible from only one location, mapped,... -- An ADT shows no implementation
? no structure to store elements, no implemented algorithms
wWhat Java construct nicely specifies ADTs?
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- java s collection framework university of arizona
- collections in java aalborg universitet
- java collection framework
- java collections list set map stanford university
- lecture 4 the java collections framework york university
- the java collections framework computer science
- jjaavvaa ccoolllleeccttiioonnss
- principles of software construction objects design and
- java collections framework
- generic types and the java collections framework
Related searches
- university of arizona salaries
- university of arizona salary list
- university of arizona salary 2018
- university of arizona financial
- university of arizona address tucson
- university of arizona admissions status
- university of arizona application 2020
- university of arizona arthritis center
- university of arizona rheumatology
- university of arizona body donation
- university of arizona employment
- university of arizona salary grades