Closed
Description
Our code style currently depends on value types with accessors named "getFoo()" and builders with setters named "setFoo()".
I can emulate the getters in the generated types with @Value.Getters, but the top-level interface then isn't useful (it will be missing the getters).
I can't emulate the setters in generated builders as far as I can tell.
It'd be really nice if we could do something like:
@Value.Immutable
@Value.GettersAndSetters
public interface Type {
int getFoo();
String getBar();
}
which would generate an ImmutableType with getFoo()
and getBar()
, and an ImmutableType.Builder
with setFoo()
and setBar()
.