From 1a2a3052310b1dc12ba9e4259a53298ae6851359 Mon Sep 17 00:00:00 2001
From: Jan @SuperBuilder
is not compatible with @Builder
.
You can use @SuperBuilder(toBuilder = true)
to also generate an instance method in your class called toBuilder()
; it creates a new builder that starts out with all the values of this instance.
- Using toBuilder
requires that all superclasses must also have toBuilder = true
.
+ Using toBuilder
requires that all superclasses also have toBuilder = true
.
You can put the @Builder.ObtainVia
annotation on the fields to indicate alternative means by which the value for that field/parameter is obtained from this instance.
For example, you can specify a method to be invoked: @Builder.ObtainVia(method = "calculateFoo")
.
-- cgit