Package lombok
Annotation Type Builder.ObtainVia
-
@Target({FIELD,PARAMETER}) @Retention(SOURCE) public static @interface Builder.ObtainViaPut on a field (in case of@Builderon a type) or a parameter (for@Builderon a constructor or static method) to indicate how lombok should obtain a value for this field or parameter given an instance; this is only relevant iftoBuilderistrue. You do not need to supply an@ObtainViaannotation unless you wish to change the default behaviour: Use a field with the same name.Note that one of
fieldormethodshould be set, or an error is generated.The default behaviour is to obtain a value by referencing the name of the parameter as a field on 'this'.