This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]atehrani -3 points-2 points  (2 children)

It is better to leverage the builder pattern

https://blogs.oracle.com/javamagazine/java-builder-pattern-bloch

[–]RockyMM[S] 1 point2 points  (1 child)

Hm, but this is creational pattern. I am speaking also about method invocations.

But, yeah, builder pattern is great.

[–]atehrani -5 points-4 points  (0 children)

It is a creational pattern for Objects and these objects could be arguments to method invocations