@Target({TYPE,FIELD})
@Retention(SOURCE)
public @interface Accessors
Complete documentation is found at the project lombok features page for @Accessors.
Using this annotation does nothing by itself; an annotation that makes lombok generate getters and setters,
such as Setter or Data is also required.
| Modifier and Type | Optional Element | Description |
|---|---|---|
boolean |
chain |
If true, setters return
this instead of void. |
boolean |
fluent |
If true, accessors will be named after the field and not include a
get or set
prefix. |
java.lang.String[] |
prefix |
If present, only fields with any of the stated prefixes are given the getter/setter treatment.
|
boolean fluent
get or set
prefix. If true and chain is omitted, chain defaults to true.
default: falsefieldName(), not for example setFieldName).boolean chain
this instead of void.
default: false, unless fluent=true, then default: truevoid (no chaining).java.lang.String[] prefix
fFieldName, specify such prefixes here).Copyright © 2009-2018 The Project Lombok Authors, licensed under the MIT licence.