The builder pattern and a large number of mandatory parameters
You can use a Step Builder if you have many mandatory parameters. In short: you define an interface for every single mandatory parameter and a builder method returns the next mandatory builder interface or the builder itself for optional methods. The builder remains a single class which implements all the interfaces. interface StepB { StepBuilder … Read more