You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I prefer this style because it keeps the builder public, while hiding the *Impl class from the API. This keeps things clean and simple.
However, I'm in a situation where using a *Modifiable makes things easier (I need to access some fields before it's done building). The visibility style is putting the *Modifiable class at the package level, so consumers of the API don't have access to it. My only choice is to make the visibility public.
Is there a way to make the *Modifiable class public, while keeping the *Impl class at the package level?
The text was updated successfully, but these errors were encountered:
I'm using a custom Immutable style:
I prefer this style because it keeps the builder public, while hiding the
*Impl
class from the API. This keeps things clean and simple.However, I'm in a situation where using a
*Modifiable
makes things easier (I need to access some fields before it's done building). The visibility style is putting the*Modifiable
class at the package level, so consumers of the API don't have access to it. My only choice is to make the visibility public.Is there a way to make the
*Modifiable
class public, while keeping the*Impl
class at the package level?The text was updated successfully, but these errors were encountered: