原文地址:http://leihuang.org/2014/11/09/Builder-Pattern/
The builder pattern is a good choice when designing classes whose constructors or static factories would have more than a handful of parameters.
当构造函数的参数非常多时,并且有多个构造函数时,情况如下:
Pizza(int size) { ... }
Pizza(int size, boolean cheese) { ... }
Pizza(int size, boolean cheese, boolean pepperoni) {...}
Pizza(int size, boolean cheese, boolean pepperoni ,boolean bacon) { ... }