Java Builder-Pattern: Too many (optional) parameters in a constructor

Java Builder-Pattern – Introduction I recently blogged about Static Factory Methods. Constructors and static factory methods have on thing in common: There are both not optimal, when having too many (optional) parameters. Telescoping-Constructor-Pattern Let’s take a simple Person-class with a Telescoping-Constructor-Pattern, which has multiple constructors to offer different ways to initiate the Read more…