中文名: Java泛型和集合
原名: Java Generics and Collections
作者: Maurice Naftalin
Philip Wadler
圖書分類: 軟件
資源格式: PDF
版本: 英文文字版/更新EPUB版本/更新MOBI版本/更新源代碼
出版社: O'Reilly
書號: 978-0-596-52775-4
發行時間: 2006年10月
地區: 美國
語言: 英文
簡介:
內容介紹:This comprehensive guide shows you how to master the most important changes to Java since it was first released. Generics and the greatly expanded collection libraries have tremendously increased the power of Java 5 and Java 6. But they have also confused many developers who haven't known how to take advantage of these new features.
Java Generics and Collections covers everything from the most basic uses of generics to the strangest corner cases. It teaches you everything you need to know about the collections libraries, so you'll always know which collection is appropriate for any given task, and how to use it.
Topics covered include:
Fundamentals of generics: type parameters and generic methods
Other new features: boxing and unboxing, foreach loops, varargs
Subtyping and wildcards
Evolution not revolution: generic libraries with legacy clients and generic clients with legacy libraries
Generics and reflection
Design patterns for generics
Sets, Queues, Lists, Maps, and their implementations
Concurrent programming and thread safety with collections
Performance implications of different collections
內容截圖: 目錄:
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
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