Immutability of big objects
- by Malax
Hi StackOverflow!
I have some big (more than 3 fields) Objects which can and should be immutable. Every time I run into that case i tend to create constructor abominations with long parameter lists. It doesn't feel right, is hard to use and readability suffers.
It is even worse if the fields are some sort of collection type like lists. A simple…