Java Generics and Collections

Maurice Naftalin, Philip Wadler

  • 出版商: O'Reilly
  • 出版日期: 2006-11-21
  • 定價: $1,200
  • 售價: 9.0$1,080
  • 語言: 英文
  • 頁數: 286
  • 裝訂: Paperback
  • ISBN: 0596527756
  • ISBN-13: 9780596527754
  • 相關分類: Java 程式語言
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

Description

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 and the new collection libraries they inspired take Java to a new level. If you want to take your software development practice to a new level, this book is essential reading.

Philip Wadler is Professor of Theoretical Computer Science at the University of Edinburgh, where his research focuses on the design of programming languages. He is a co-designer of GJ, work that became the basis for generics in Sun's Java 5.0.

Maurice Naftalin is Technical Director at Morningside Light Ltd., a software consultancy in the United Kingdom. He has most recently served as an architect and mentor at NSB Retail Systems plc, and as the leader of the client development team of a major UK government social service system.

"A brilliant exposition of generics. By far the best book on the topic, it provides a crystal clear tutorial that starts with the basics and ends leaving the reader with a deep understanding of both the use and design of generics."
Gilad Bracha, Java Generics Lead, Sun Microsystems

商品描述(中文翻譯)

描述

這本全面的指南向您展示了如何掌握自Java首次發布以來最重要的變化。泛型和大幅擴展的集合庫極大地增強了Java 5和Java 6的功能。但是,這些新功能也讓許多開發人員感到困惑,不知道如何充分利用這些新功能。

《Java泛型和集合》涵蓋了從泛型的最基本用法到最奇特的邊緣案例的一切。它教您關於集合庫的一切,因此您始終會知道哪個集合對於任務是適合的,以及如何使用它。

涵蓋的主題包括:
- 泛型的基礎知識:類型參數和泛型方法
- 其他新功能:裝箱和拆箱、foreach循環、可變參數
- 子類化和通配符
- 進化而非革命:具有遺留客戶端的泛型庫和具有遺留庫的泛型客戶端
- 泛型和反射
- 泛型的設計模式
- 集合、隊列、列表、映射及其實現
- 使用集合進行並發編程和線程安全
- 不同集合的性能影響

泛型和新的集合庫將Java帶到了一個新的水平。如果您想將軟件開發實踐提升到一個新的水平,這本書是必讀的。

Philip Wadler是愛丁堡大學的理論計算機科學教授,他的研究重點是編程語言的設計。他是GJ的共同設計者,這項工作成為Sun的Java 5.0中泛型的基礎。

Maurice Naftalin是英國軟件咨詢公司Morningside Light Ltd.的技術總監。他最近在NSB Retail Systems plc擔任架構師和導師,並擔任英國一個重要政府社會服務系統的客戶開發團隊負責人。

“關於泛型的一本出色著作。這是關於這個主題的最好的書,它提供了一個清晰明確的教程,從基礎知識開始,最終讓讀者對泛型的使用和設計有深入的理解。”
-Gilad Bracha,Java泛型負責人,Sun Microsystems