Lombok - v0.11.4

lombok.experimental
Annotation Type Accessors


@Target(value={TYPE,FIELD})
@Retention(value=SOURCE)
public @interface Accessors

A container for settings for the generation of getters and setters. Using this annotation does nothing by itself; an annotation that makes lombok generate getters and setters, such as Setter or Data is also required.


Optional Element Summary
 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.
 String[] prefix
          If present, only fields with any of the stated prefixes are given the getter/setter treatment.
 

fluent

public abstract boolean fluent
If true, accessors will be named after the field and not include a get or set prefix. If true and chain is omitted, chain defaults to true. default: false

Default:
false

chain

public abstract boolean chain
If true, setters return this instead of void. default: false, unless fluent=true, then default: true

Default:
false

prefix

public abstract String[] prefix
If present, only fields with any of the stated prefixes are given the getter/setter treatment. Note that a prefix only counts if the next character is NOT a lowercase character or the last letter of the prefix is not a letter (for instance an underscore). If multiple fields all turn into the same name when the prefix is stripped, an error will be generated.

Default:
{}

Lombok - v0.11.4

Copyright © 2009-2011 The Project Lombok Authors, licensed under the MIT licence.