Главная
Study mode:
on
1
Intro
2
Introducing the architecture of the Collections API
3
What does it mean for a collection to be sorted
4
Ordering elements in a collection with an index
5
Differences between Lists and SortedSets
6
Defining the encounter order for List, Set, and SortedSet
7
Properties of LinkedHashSet
8
Common behavior between List, SortedSet and LinkedHashSet
9
Defining the behavior of sequenced collections
10
Adding SequencedCollection and SequencedSet to the Collections API
11
Making Deque implement SequencedCollection
12
Iterating over the elements of a Map
13
Iterating over the elements of a SortedMap or NavigableMap
14
Introducing SequencedMap
15
Creating unmodifiable views with the Collections factory class
16
Outro
Description:
Explore the principles of Sequenced Collections, Sets, and Maps, a new feature introduced in JDK 21. Dive into the Sequenced Collections API, part of the Collections Framework, which models collections with a defined encounter order and provides direct access to first and last elements. Learn about the architecture of the Collections API, understand the concept of sorted collections, and discover how elements are ordered using indexes. Compare Lists and SortedSets, examine the encounter order for various collection types, and explore the properties of LinkedHashSet. Investigate the common behaviors among different collection types and understand the defining characteristics of sequenced collections. Follow the implementation of SequencedCollection and SequencedSet in the Collections API, and see how Deque implements SequencedCollection. Gain insights into iterating over Map elements, including SortedMap and NavigableMap, and get introduced to SequencedMap. Finally, learn about creating unmodifiable views using the Collections factory class in this comprehensive 20-minute video on Java 21's new Sequenced Collections feature. Read more

Java 21 New Feature: Sequenced Collections

Java
Add to list
0:00 / 0:00