Records & Sealed Types

Preview

A record declares immutable data with generated equals, hashCode, toString, and accessors:

Sign in to read the full chapter.

Checking access…