Mutable preferences objects
Context and Problem Statement
To create an immutable preferences object every time seems to be a waste of time and computer memory.
- Create a new object every time a preferences object should be altered by a with*-method, similar to a builder.
- Alter the existing object and return it.
Chosen option: "Alter the exiting object", because the preferences objects are just wrappers around the basic preferences framework of JDK. They should be mutable on-the-fly similar to objects with a Builder inside and to be stored immediately again in the preferences.