|
Lombok - v0.10.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value=TYPE) @Retention(value=SOURCE) public @interface NoArgsConstructor
Generates a no-args constructor. Will generate an error message if such
a constructor cannot be written due to the existence of final fields.
NB: Fields with constraints such as @NonNull will NOT be checked
in such a constructor, of course!
RequiredArgsConstructor,
AllArgsConstructor| Optional Element Summary | |
|---|---|
AccessLevel |
access
Sets the access level of the constructor. |
String |
staticName
If set, the generated constructor will be private, and an additional static 'constructor' is generated with the same argument list that wraps the real constructor. |
public abstract String staticName
public abstract AccessLevel access
public.
|
Lombok - v0.10.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||