Data Oriented Programming in Java – Brian Goetz

Project Amber has brought a number of new features to Java in recent years. While each of these features are self-contained, they are also designed to work together. Specifically, records, sealed classes, and pattern matching work together to enable easie… Read more

Similar

Data Classes and Sealed Types for Java

This document explores possible directions for data classes and sealed types in the Java Language, and is an update to Data Classes in Java. This is an exploratory document only and does not constitute a plan for any specific feature in any specific versi... (more…)

Read more »

Java Sealed Classes

The release of Java SE 15 in Sept 2020 will introduce "sealed classes" (JEP 360) as a preview feature. A sealed class is a class or interface which restricts which other classes or interfaces may extend it. Sealed classes, like enums, capture alternative... (more…)

Read more »

Comparing Objects in Java

TLDR; Java has a few different ways of comparing variables and objects with one another. ==, equals(), compareTo() and compare(). Java provides various operators such as == and != which check for equality and inequality respectively. They are used in a pr... (more…)

Read more »