Re:Better Java – Resources for Writing Modern Java
by logn on Saturday September 19, 2015 @07:49PM
(#10245977)
> Sometimes you want a computed property and you use non-trivial getter
Then pre-compute it, make it immutable, and expose the variable. And if that ends up being too hard it's probably because you need a builder and/or to group your properties into smaller classes.
Then pre-compute it, make it immutable, and expose the variable. And if that ends up being too hard it's probably because you need a builder and/or to group your properties into smaller classes.