Share E-Book

Java Generics and Collections, 2nd Edition (Maurice Naftalin, Philip Wadler)(Z-Library)

Author

,

Rating No ratings yet

Log in to rate

Java
Language English

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

Format EPUB
Size 3.1 MB
154
Views

AI Guide

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

Full assistant
Brief outline
【One-Line Pitch】 Java Generics and Collections has been the go-to guide to generics for more than a decade. This second edition covers… 【Book Arc】 - **Opening (~0%–12%)**: It covers the collections library thoroughly, so you'll always know how and when to use each collection for any given task.; edition of this book is a comprehensive update for Java 21. - **Early (~12%–35%)**: may use the sample code in your programs and documentation.; the compile errors will be found in the corresponding text. - **Middle (~35%–65%)**: rmulate two principles to help you work around the problems.; String can be assigned to a variable of type List String . - **Late (~65%–88%)**: he Java Language Specification ( Gosling et al.; Subtyping and Wildcards Chapter 2. - **Ending (~88%–100%)**: another kind of wildcard, as explained in the next section.; a subtype of Number , as required by the extends wildcard). 【Key Takeaways】 - **It covers the collecti…** (Opening): It covers the collections library thoroughly, so you'll always know how and when to use each collection for any given task. - **edition of this book i…** (Opening): edition of this book is a comprehensive update for Java 21. - **rst edition** (Opening): rst edition, in an updated form, at the end of this section. - **may use the sample cod…** (Early): may use the sample code in your programs and documentation. - **the compile errors wil…** (Early): the compile errors will be found in the corresponding text. - **The most immediate eff…** (Early): The most immediate effect is in the use of the collection types, such as List . 【Reading Tips】 - Use Passage locations below to jump into the text and set reading anchors - If this is a brief outline, click Regenerate (top right) for a synthesized guide 【Coverage Limits】 Compressed outline without the model (~33 index chunks). Full structured guide needs AI available.

Passage locations

Excerpt 1
al sales department: 800-998-9938 or corporate@oreilly.com . Acquisitions Editor: Brian Guerin Development Editor: Sara Hunter Production Editor: Aleeya Rahm...
View in text
Excerpt 2
the compile errors will be found in the corresponding text. Code fragments—including program elements such as variable or function names, databases, data typ...
View in text
Excerpt 3
he main reasons for introducing generics in the first place. In Part II, we describe the entire Collections Framework from first principles in order to help...
View in text
Excerpt 4
licit casts added by the compilation of generics never fail. There is some fine print on this guarantee: it applies only when no unchecked warnings have occu...
View in text

Recommended for You

Loading recommended books...
Failed to load, please try again later

Tip the Site

Scan the WeChat Pay or Alipay code to tip. No login required.

WeChat Pay
Alipay
← Back to List