Java Generics and Collections: Speed Up the Java Development Process

Java Generics and Collections: Speed Up the Java Development Process

by Maurice Naftalin, Philip Wadler

Paperback

$34.99
View All Available Formats & Editions
Choose Expedited Shipping at checkout for guaranteed delivery by Wednesday, March 27

Product Details

ISBN-13: 9780596527754
Publisher: O'Reilly Media, Incorporated
Publication date: 10/01/2006
Pages: 286
Product dimensions: 7.00(w) x 9.19(h) x 0.70(d)

About the Author

Maurice Naftalin is Director of Software Development at Morningside Light Ltd., a software consultancy in the United Kingdom. Maurice consults mainly in object-oriented technologies and teaches Java classes part-time at Learning Tree. He has three decades' experience as a programmer, team leader, and commercial trainer.

Philip Wadler is a professor of theoretical computer science at the University of Edinburgh, Scotland, where his research focuses on functional and logic programming. He co-authored the Generic Java standard that became the basis for generics in Sun's Java 5.0 and also contributed to the XQuery language standard base. Professor Wadler received his Ph.D., in computer science from Carnegie-Mellon University and co-wrote "Introduction to Functional Programming" (Prentice-Hall).

Table of Contents

  • Preface
  • Part I: Generics
    • Chapter 1: Introduction
    • Chapter 2: Subtyping and Wildcards
    • Chapter 3: Comparison and Bounds
    • Chapter 4: Declarations
    • Chapter 5: Evolution, Not Revolution
    • Chapter 6: Reification
    • Chapter 7: Reflection
    • Chapter 8: Effective Generics
    • Chapter 9: Design Patterns


  • Part II: Collections
    • Chapter 10: The Main Interfaces of the Java Collections Framework
    • Chapter 11: Preliminaries
    • Chapter 12: The Collection Interface
    • Chapter 13: Sets
    • Chapter 14: Queues
    • Chapter 15: Lists
    • Chapter 16: Maps
    • Chapter 17: The Collections Class


  • Colophon

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews

Java Generics and Collections: Speed Up the Java Development Process 4.2 out of 5 based on 0 ratings. 5 reviews.
gbsallery on LibraryThing 10 months ago
A useful overview of the collections classes, with a fairly good introduction to Generics. Not as much depth as would have been useful, and the worked examples for Generics were somewhat too simplistic - the interesting complexity occurs with real-world data structures and covariant generics, which were not really covered. A strange combination of subjects, too - the first half of the book is readable as an introduction to Generics, the second is more useful as a reference on the Collections classes.
erk on LibraryThing 10 months ago
Strangely boring, given that I've enjoyed Wadler's writings on Haskell. Some very good sections (the first 100 pages); some incredibly boring ones (most of the Collections discussion).
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Guest More than 1 year ago
Do you wish to process lists? If you do, then this book is for you. Authors Maurice Naftalin and Philip Wadler, have done an outstanding job of writing a book that shows you how to master the most important changes to Java since it was first released. Naftalin and Wadler, begin with an overview of generics and other new features in Java 5. Then, the authors review how subtyping works and explain how wildcards let you use subtyping in connection with generics. Next, they describe how generics works with the Comparable interface, which requires a notion of bounds on type variables. They also look at how generics work with various declarations. The authors continue by explaining how to evolve legacy code to exploit generics. Then, they explain how the same design that leads to ease of evolution also necessarily leads to a few rough edges in the treatment of casts, exceptions and arrays. Next, they explain new features that relate generics and reflection. The authors also give advice on how to use generics effectively in practical coding. They continue by looking at how generics affect well known design patterns. Then, the authors give an overview of the Framework and then look in detail at each of the main interfaces and the standard implementation of them. Finally, the authors look at the special-purpose implementation and generic algorithms provided in the Collections class. This most excellent book covers everything from the most basic uses of generics to the strangest collections cases. Perhaps more importantly, this book shows you everything you need to know about the collections libraries!