|
Lombok - v0.10.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value=TYPE) @Retention(value=SOURCE) public @interface RequiredArgsConstructor
Generates a constructor with required arguments.
Required arguments are final fields and fields with constraints such as @NonNull.
NoArgsConstructor,
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. |
boolean |
suppressConstructorProperties
Deprecated. Java 1.5 has already been end-of-lifed. As java 1.5 loses ground this method will eventually be removed. |
public abstract String staticName
public abstract AccessLevel access
public.
@Deprecated public abstract boolean suppressConstructorProperties
ConstructorProperties annotation.
However, this annotation is new in 1.6 which means those compiling for 1.5 will need
to set this value to true.
|
Lombok - v0.10.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||