Package org.immutables.encode
Annotation Type Encoding.Init
-
@Target(METHOD) @Retention(SOURCE) public static @interface Encoding.InitBuilder init method template. Can be as simple as.setValue(1)to.addVal,.addAll,.putAddAllWhatevervariations. Many such initializers may be specified, so they will appear for each attribute handled by encoding.Can be annotated with
Encoding.Copyannotation to specify that it is capable of accepting full value returned by getter of the same attribute.