Sep 7, 2018 · 1 min read
I like the approach and use it as well in some instances (generally fluent configuration). One point to be wary of, defining the Builder class in the body of the getter will break “instanceof” for objects instantiated with that constructor.