News for hackers. Stuff that matters.
Re:Data Classes for Java by usrusr on Thursday November 02, 2017 @04:16AM (#15608667)
If moving requires a name to be set you are at constructor time, no need for permanently available setters.
Re:Data Classes for Java by wvenable on Thursday November 02, 2017 @10:35AM (#15610748)
Two things with that, you're assuming immutability but even a simple database entity object wouldn't be immutable. And secondly, anything over a handful of values and setting them via a constructor isn't pretty.