samedi 22 avril 2017

How to make a class with 10+ instance variables immutable and still manageable

There are more than 10 instance variables in a class . What is the best way to make class immutable in java. Of course one way is to have a constructor with 10 parameter.

Aucun commentaire:

Enregistrer un commentaire