@GwtCompatible
@Target(value={FIELD,TYPE})
@Documented
public @interface Accessors
Annotated on a field
AccessorType
[] argument is given, only the listed
accessors with the specified visibility will be generateddeprecationPolicy
Annotated on a class
FinalFieldsConstructor
annotation.AccessorType.NONE
.
This annotation can also be used to fine-tune the getters generated by Data
.Modifier and Type | Optional Element and Description |
---|---|
AccessorsDeprecationPolicy |
deprecationPolicy
Describes when
@Deprecated will be added to generated accessors.If it is not wanted or needed, pass AccessorsDeprecationPolicy.NEVER to prevent the annotation from being added. |
AccessorType[] |
value
Describes the access modifiers for generated accessors.
|
public abstract AccessorType[] value
AccessorType.NONE
.@Beta public abstract AccessorsDeprecationPolicy deprecationPolicy
@Deprecated
will be added to generated accessors.AccessorsDeprecationPolicy.NEVER
to prevent the annotation from being added.