58358788-Java-Collec - Collections(Collection Framework Framework Sang Shin Java Technology Architect Sun Microsystems Inc [email protected]

Info iconThis preview shows pages 1–13. Sign up to view the full content.

View Full Document Right Arrow Icon
Collections (Collection Collections (Collection Framework) Framework) Sang Shin Sang Shin Java Technology Architect Java Technology Architect Sun Microsystems, Inc. Sun Microsystems, Inc. [email protected] [email protected] www.javapassion.com www.javapassion.com
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Disclaimer & Acknowledgments Even though Sang Shin is a full-time employee of Sun Microsystems, the contents here are created as his own personal endeavor and thus does not necessarily reflect any official stance of Sun Microsystems on any particular technology Acknowledgments > The contents of this presentation was created from The Java Tutorials in java.sun.com
Background image of page 2
3 Topics What is and Why Collections? Core Collection Interfaces Implementations Algorithms Custom Implementations Interoperability
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
What is a Collection? What is a Collection? What is and Why What is and Why Collection Framework? Collection Framework?
Background image of page 4
5 What is a Collection? A “collection” object — sometimes called a container — is simply an object that groups multiple elements into a single unit Collections are used to store, retrieve, manipulate, and communicate aggregate data > Typically, they represent data items that form a natural group, such as a poker hand (a collection of cards), a mail folder (a collection of letters), or a telephone directory (a mapping of names to phone numbers).
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6 What is a Collection Framework? A collections framework is a unified architecture for representing and manipulating collections All collections frameworks contain the following: > Interfaces > Implementations > Algorithms
Background image of page 6
7 Benefits of Collection Framework Reduces programming effort Increases program speed and quality Allows interoperability among unrelated APIs > The collection interfaces are the vernacular by which APIs pass collections back and forth Reduce effort to learn and use new APIs Reduces effort to design new APIs Fosters software reuse > New data structures that conform to the standard collection interfaces are by nature reusable
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Implementations in Implementations in Collection Framework Collection Framework
Background image of page 8
9 Interfaces Collection interfaces are abstract data types that represent collections > Collection interfaces are in the form of Java interfaces Interfaces allow collections to be manipulated independently of the implementation details of their representation > Polymorphic behavior In Java programming language (and other object- oriented languages), interfaces generally form a hierarchy > You choose one that meets your need as a type
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
10 Implementations These are the concrete implementations of the collection interfaces
Background image of page 10
11 Types of Implementations General-purpose implementations Special-purpose implementations Concurrent implementations Wrapper implementations Convenience implementations Abstract implementations
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
12 Implementations Implementations are the data objects used to store
Background image of page 12
Image of page 13
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/14/2011 for the course ENPM 603 taught by Professor Kumar during the Winter '09 term at Indian Institute of Technology, Kharagpur.

Page1 / 78

58358788-Java-Collec - Collections(Collection Framework Framework Sang Shin Java Technology Architect Sun Microsystems Inc [email protected]

This preview shows document pages 1 - 13. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online