Java 21's New (Sequenced) Collections - Inside Java Newscast #45
Nicolai Parlog on March 30, 2023In Java, all lists as well as some sets and maps have an encounter order, meaning their elements have stable positions. But the collections framework had no type to capture this property and define operations on like getting or removing first and last elements or iterating in reverse order. “Had” because thanks to the addition of sequenced collections through JEP 431, this will change
Make sure to check the show-notes.