@Target(value=TYPE) @Retention(value=SOURCE) public @interface FieldDefaults
Complete documentation is found at the project lombok features page for @FieldDefaults.
If makeFinal
is true
, then each (instance) field that is not annotated with @NonFinal
will have the final
modifier added.
If level
is set, then each (instance) field that is package private (i.e. no access modifier) and does not have the @PackagePrivate
annotation will
have the appropriate access level modifier added.
Modifier and Type | Optional Element and Description |
---|---|
AccessLevel |
level |
boolean |
makeFinal |
public abstract AccessLevel level
Copyright © 2024. All rights reserved.