Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore new Collections APIs introduced in Java 9 through this comprehensive conference talk. Dive into the benefits of improved convenience, immutability, and space efficiency offered by the new collection implementations. Learn about the small API footprint, making these collections easy to adopt and use. Discover how they integrate seamlessly with existing code using the collections framework. Examine topics such as collection literals, map of entries, overload resolution, nulls, immutability, thread safety, and duplicate rejection. Gain insights into implementation issues, design considerations, and performance improvements. Understand the impact on code simplicity, cleanliness, and memory consumption for common use cases. Engage with questions and comments to deepen your understanding of these powerful new Java 9 features.
Syllabus
Introduction
Collection literals
The new API
The API
Examples
Map of Entries
Overloads
Overload Resolution
Fixed Overloads
Nulls
Immutability
Why are we doing this
Threadsafe
Unmodifiable wrappers
Duplicates
Duplicate Rejection
Duplicate Rejection Example
Implementation Issues
Implementation Diagram
How big is this
Shooting fish in a barrel
Cost per element
Design considerations
Organization considerations
Improved access time
Private APIs
Collection Size
Compatability
Serialization
iteration order
randomized iteration order
Questions and comments
Taught by
Devoxx