Package net.jrodolfo.java_evolution.java16
package net.jrodolfo.java_evolution.java16
Examples for features introduced in Java 16.
Java 16 finalized records and pattern matching for instanceof. It
also added Stream.toList() and Unix-domain socket channel support.
For beginner-oriented notes about the problems these features solved, see the package README in the source directory.
-
ClassDescriptionDemonstrates pattern matching for
instanceof, finalized in Java 16.Demonstrates records, finalized in Java 16.Simple record with generated accessors and value equality.Record with a compact constructor for validation.DemonstratesStream.toList(), introduced in Java 16.Explains Unix-domain socket channel support, introduced in Java 16.