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`.
Glossary: Software Design Patterns in Java
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`.