Java Champion. Creator of the Eclipse Collections OSS Java library. Inspired by Smalltalk. Opinions are my own.
JDK 15 was released on September 15, 2020. JEP 360 Sealed Types was included as a preview feature in this release, with its second preview in JDK 16.
Sealed Types is part of Project Amber. Sealed classes or interfaces can be used to restrict the interfaces or classes that are allowed to extend them.
Also learn about the source code for an experimental implementation of a collections framework can be found in the Deck of Cards Kata repo.Don Raab