My Account
View Cart
Home
Community
Books & Videos
Safari Books Online
Conferences
Training
School of Technology
About
Complete List
Bestsellers
New Releases
Rough Cuts
Upcoming Titles
Ebooks
By Publisher
By Series
Out of Print
Order Info
Search
Search Tips
Tell a friend
Java Generics and Collections
By
Maurice Naftalin
,
Philip Wadler
October 2006
Pages: 284
|
Table of Contents
|
Index
|
Sample Chapter
|
Colophon
Table of Contents
Generics
Chapter 1
Introduction
Generics
Boxing and Unboxing
Foreach
Generic Methods and Varargs
Assertions
Chapter 2
Subtyping and Wildcards
Subtyping and the Substitution Principle
Wildcards with extends
Wildcards with super
The Get and Put Principle
Arrays
Wildcards Versus Type Parameters
Wildcard Capture
Restrictions on Wildcards
Chapter 3
Comparison and Bounds
Comparable
Maximum of a Collection
A Fruity Example
Comparator
Enumerated Types
Multiple Bounds
Bridges
Covariant Overriding
Chapter 4
Declarations
Constructors
Static Members
Nested Classes
How Erasure Works
Chapter 5
Evolution, Not Revolution
Legacy Library with Legacy Client
Generic Library with Generic Client
Generic Library with Legacy Client
Legacy Library with Generic Client
Conclusions
Chapter 6
Reification
Reifiable Types
Instance Tests and Casts
Exception Handling
Array Creation
The Principle of Truth in Advertising
The Principle of Indecent Exposure
How to Define ArrayList
Array Creation and Varargs
Arrays as a Deprecated Type?
Summing Up
Chapter 7
Reflection
Generics for Reflection
Reflected Types are Reifiable Types
Reflection for Primitive Types
A Generic Reflection Library
Reflection for Generics
Reflecting Generic Types
Chapter 8
Effective Generics
Take Care when Calling Legacy Code
Use Checked Collections to Enforce Security
Specialize to Create Reifiable Types
Maintain Binary Compatibility
Chapter 9
Design Patterns
Visitor
Interpreter
Function
Strategy
Subject-Observer
Collections
Chapter 10
The Main Interfaces of the Java Collections Framework
Chapter 11
Preliminaries
Iterable and Iterators
Implementations
Efficiency and the O-Notation
Contracts
Collections and Thread Safety
Chapter 12
The Collection Interface
Using the Methods of Collection
Implementing Collection
Collection Constructors
Chapter 13
Sets
Implementing Set
SortedSet and NavigableSet
Comparing Set Implementations
Chapter 14
Queues
Using the Methods of Queue
Implementing Queue
BlockingQueue
Deque
Comparing Queue Implementations
Chapter 15
Lists
Using the Methods of List
Implementing List
Comparing List Implementations
Chapter 16
Maps
Using the Methods of Map
Implementing Map
SortedMap and NavigableMap
ConcurrentMap
ConcurrentNavigableMap
Comparing Map Implementations
Chapter 17
The Collections Class
Generic Algorithms
Collection Factories
Wrappers
Other Methods
Colophon
Return to
Java Generics and Collections