Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Sequenced Collections in Java - Deep Dive

Java via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
This 45-minute conference talk from JavaOne 2025 explores the Sequenced Collections feature introduced in JDK 21, addressing a historical gap in the Java Collections Framework. Discover how these new collection types represent sequences with defined encounter order and provide uniform operations across collections. Learn about key capabilities including adding, retrieving, and removing elements from either end of collections, plus techniques for viewing, iterating, and streaming elements in reverse order. The presentation covers improvements to LinkedHashMap, the evolution of collection interface hierarchies, and practical demonstrations of how to leverage SequencedCollection, SequencedSet, and SequencedMap interfaces in your code. Presented by Stuart Marks, Consulting Member of Technical Staff in Oracle's Java Platform Group, this deep dive includes design rationales and future directions for Java collections.

Syllabus

• 00:00 Intro
• 00:21 Collection Framework Overview
• 01:38 Choosing the Right Collection
• 08:33 JEP 431 - Sequenced Collections
• 10:10 Collection Interface Hierarchy Evolution
• 11:45 SequencedCollection Interface
• 13:48 SequencedSet Interface
• 14:15 SequencedMap Interface
• 15:57 Removing First and Last Elements
• 18:26 Iterating in Reverse
• 21:22 Streaming in Reverse
• 22:45 Using SequencedCollection in APIs
• 24:47 Rehabilitation of LinkedHashSet & LinkedHashMap
• 26:36 Demos
• 32:58 Design Rationals
• 42:14 Summary & Future Directions

Taught by

Java

Reviews

Start your review of Sequenced Collections in Java - Deep Dive

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.