Thursday, January 4, 2018

[HDGEM] How to only allow an object be created via the builder instead of constructor in Java

Remove the public constructor from the class and replace it with a private constructor so that objects can only be created via the builder.