I remember reading Effective Java by Joshua Bloch and a builder design pattern described there. However, I forgot what was exactly the purpose of nested static class (Builder). The only thing I can think of is that it doesn't allow creating instances without using the builder. Were there any other advantages?
Aucun commentaire:
Enregistrer un commentaire