|
Lombok - v0.10.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value={FIELD,TYPE})
@Retention(value=SOURCE)
public @interface SetterPut on any field to make lombok build a standard setter.
Example:
private @Setter int foo;
will generate:
public void setFoo(int foo) {
this.foo = foo;
}
If any method named setFoo exists, regardless of return type or parameters, no method is generated,
and instead a compiler warning is emitted.
This annotation can also be applied to a class, in which case it'll be as if all non-static fields that don't already have
a Setter annotation have the annotation.
| Optional Element Summary | |
|---|---|
AccessLevel |
value
If you want your setter to be non-public, you can specify an alternate access level here. |
public abstract AccessLevel value
|
Lombok - v0.10.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||