Java Generics and Collections: Fundamentals and Recommended Practices
暫譯: Java 泛型與集合:基礎與建議實踐

Naftalin, Maurice, Wadler, Philip

  • 出版商: O'Reilly
  • 出版日期: 2025-07-22
  • 售價: $2,130
  • 貴賓價: 9.5$2,024
  • 語言: 英文
  • 頁數: 300
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1098136721
  • ISBN-13: 9781098136727
  • 相關分類: Java 程式語言
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Java Generics and Collections has been the go-to guide to generics for more than a decade. This second edition covers Java 21, providing a clear guide to generics from their most common uses to the strangest corner cases, giving you everything you need to know to use and write generic APIs effectively. It covers the collections library thoroughly, so you'll always know how and when to use each collection for any given task. And it explains stream processing, so you'll know which model to use and how they interoperate to get the best out of the platform library.

This indispensable guide covers:

  • Fundamentals of generics: type parameters and generic methods
  • Subtyping and wildcards
  • Generics and reflection
  • Design patterns for generics
  • Sets, queues, lists, maps, and their implementations
  • Concurrent programming and thread safety with collections
  • Performance of different collection implementations
  • Best practices for using and extending the Java collections framework
  • Design philosophy and comparison with other collections libraries

商品描述(中文翻譯)

Java 泛型與集合已經成為超過十年的泛型指南。這第二版涵蓋了 Java 21,提供了一個清晰的泛型指南,從最常見的用法到最奇特的邊界案例,讓您了解有效使用和編寫泛型 API 所需的一切。它徹底涵蓋了集合庫,因此您將始終知道在任何特定任務中如何以及何時使用每個集合。它還解釋了串流處理,讓您知道應該使用哪種模型以及它們如何互操作,以充分發揮平台庫的優勢。

這本不可或缺的指南涵蓋了:
- 泛型基礎:類型參數和泛型方法
- 子類型和通配符
- 泛型與反射
- 泛型設計模式
- 集合、佇列、列表、映射及其實現
- 與集合的併發編程和線程安全
- 不同集合實現的性能
- 使用和擴展 Java 集合框架的最佳實踐
- 設計哲學及與其他集合庫的比較