Organizing Data
Handling data structures and state easier.
Table of Contents
- Self Encapsulate Field: Access a field via getters and setters.
- Replace Data Value with Object: Replace a data item with an object.
- Change Value to Reference: Turn a value object into a reference object.
- Replace Array with Object: Replace an array with an object that has separate fields for each element.
- Encapsulate Collection: Make a read-only alias for the collection to prevent clients from modifying it.
- Replace Type Code with Class: Replace a type code with a class.