Package lombok.experimental
Annotation Type FieldDefaults
-
@Target(TYPE) @Retention(SOURCE) public @interface FieldDefaultsAdds modifiers to each field in the type with this annotation.Complete documentation is found at the project lombok features page for @FieldDefaults.
If
makeFinalistrue, then each (instance) field that is not annotated with@NonFinalwill have thefinalmodifier added.If
levelis set, then each (instance) field that is package private (i.e. no access modifier) and does not have the@PackagePrivateannotation will have the appropriate access level modifier added.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description AccessLevellevelbooleanmakeFinal
-
-
-
Element Detail
-
level
AccessLevel level
- Default:
- lombok.AccessLevel.NONE
-
-