About data classes, named parameters & default values
Writing data models in Java is a pain. You have to write getters, setters, toString()
, hashCode()
and equals()
methods, constructors and possibly builders or a copy()
method. For complex models this can easily create classes of a few…