Construct object with many private collection fields
What is the most efficient and clean way to create an object of a class
that has like 10 private fields that are collections (eg. HashMap,
LinkedHashMap, ArrayList etc).
If I put a constructor with 10 fields in it it would look like nightmare.
 
No comments:
Post a Comment