Please, can you explain why the creators of guava prefer to define the constructors as private, and to define static methods create() to create objects ?
Please, can you explain why the creators of guava prefer to define the constructors
Share
Effective Java item 1: Consider static factory methods instead of constructors.
Some of the advantages of static factory methods include: