I have seen examples of builder patterns where this
is returned in all public methods and other examples where a inner class Builder()
is used instead of returning this
with a build()
method inside.
So what is the difference and what/when should I use which one?
Aucun commentaire:
Enregistrer un commentaire