You can, with care, create an abstract Builder class that can be extended.
You have to be careful to never call a concrete constructor and only call
its own builder methods, leaving the final construction abstract. Basically
a bunch of setter methods in a builder style.

Kenn

On Mon, Jan 27, 2020 at 9:08 PM Kenneth Knowles <[email protected]> wrote:

> It might be more trouble than it is worth, saving typing but adding
> complexity. Especially since you've got @AutoValue and @AutoValue.Builder
> to do all the heavy lifting anyhow (
> https://beam.apache.org/contribute/ptransform-style-guide/#api).
>
> Kenn
>

Reply via email to