Record Classes and Record Patterns in Java: Eliminating Boilerplate the Right Way

If you’ve been writing Java for a few years, you’ve probably created dozens of classes whose sole purpose was to hold data.