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 ?
Effective Java item 1: Consider static factory methods instead of constructors.
Some of the advantages of static factory methods include:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With