diff options
author | Caleb Brinkman <cbrinkman@sonatype.com> | 2019-07-10 17:27:01 -0500 |
---|---|---|
committer | Caleb Brinkman <cbrinkman@sonatype.com> | 2019-07-10 17:28:54 -0500 |
commit | 88bf742e3e107cc0bbfc3a72c2f456d34ef3079c (patch) | |
tree | 4ee4ceecd14e49e371e40e6dd33b25c1babf2dae /docker | |
parent | 96151ade650c2038ab639a1c0f5a504747c4b1b5 (diff) | |
download | lombok-88bf742e3e107cc0bbfc3a72c2f456d34ef3079c.tar.gz lombok-88bf742e3e107cc0bbfc3a72c2f456d34ef3079c.tar.bz2 lombok-88bf742e3e107cc0bbfc3a72c2f456d34ef3079c.zip |
Implement prefixed setters
Related to #1805, this change adds an optional `setterPrefix` parameter
to the `Builder` annotation; if this parameter is unspecified or blank
the behavior of the `Builder` annotation is unchanged, but if it is
present the value specified will be prefixed to the generated methods.
For example, using:
```
@Builder(setterPrefix = "include")
class Foo {
private int someValue;
}
```
will result in a generated `Builder` class containing an `includeSomeValue(int someValue)`
method instead of the default `someValue(int someValue)`.
Diffstat (limited to 'docker')
0 files changed, 0 insertions, 0 deletions