Skip to content

Glossary: Software Design Patterns in Java

Immutable

Also written: unchangeable, final

An object whose fields can't change after it is made. Records are immutable, so to "change" one you build a new record, as in `withQty`.

Where the book teaches it

Related terms

RecordPrototype