| Annotation Type | Description |
|---|---|
| Accessors |
A container for settings for the generation of getters, setters and "with"-ers.
|
| Delegate |
Put on any field to make lombok generate delegate methods that forward the call to this field.
|
| ExtensionMethod |
Extension methods enable you to "add" methods to existing types without creating a new derived type, recompiling, or
otherwise modifying the original type.
|
| FieldDefaults |
Adds modifiers to each field in the type with this annotation.
|
| FieldNameConstants |
Generates an inner type, containing String constants containing the field name for each field.
|
| FieldNameConstants.Exclude |
If present, do not include this field in the generated fieldnames inner type.
|
| FieldNameConstants.Include |
If present, include this field in the generated fieldnames inner type (default).
|
| Helper |
Use on a method local class to indicate that all methods inside should be exposed to the rest of
the method as if they were helper methods.
|
| NonFinal |
Used to indicate the explicit intention for the annotated entity to not be
final. |
| PackagePrivate |
Used to indicate the explicit intention for the annotated entity to have the package private access level.
|
| StandardException |
Put on any class that extends some
java.lang.Throwable type to add the 4 common exception constructors. |
| SuperBuilder |
The SuperBuilder annotation creates a so-called 'builder' aspect to the class that is annotated with
@SuperBuilder, but which works well when extending. |
| Tolerate |
Put on any method or constructor to make lombok pretend it doesn't exist,
i.e., to generate a method which would otherwise be skipped due to possible conflicts.
|
| UtilityClass |
An annotation to create utility classes.
|
| var | Deprecated
var has been promoted to the main package; use var instead. |
| WithBy |
Put on any field to make lombok build a 'withBy' - a withFieldNameBy method which produces a clone of this object (except for 1 field which gets a new value).
|
| WithBy.AnyAnnotation | Deprecated
Don't use this annotation, ever - Read the documentation.
|
| Wither | Deprecated
With has been promoted to the main package, so use that one instead. |
| Wither.AnyAnnotation | Deprecated
Don't use this annotation, ever - Read the documentation.
|
Copyright © 2025. All rights reserved.