Lombok - v0.10.0-RC1

lombok
Annotation Type AllArgsConstructor


@Target(value=TYPE)
@Retention(value=SOURCE)
public @interface AllArgsConstructor

Generates an all-args constructor. An all-args constructor requires one argument for every field in the class.

See Also:
NoArgsConstructor, RequiredArgsConstructor

Optional Element Summary
 AccessLevel access
          Sets the access level of the constructor.
 AllArgsConstructor.AnyAnnotation[] onConstructor
          If you want your constructor to have additional annotations, you can specify them here.
 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.
 

staticName

public abstract 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. Such a static 'constructor' is primarily useful as it infers type arguments.

Default:
""

access

public abstract AccessLevel access
Sets the access level of the constructor. By default, generated constructors are public.

Default:
lombok.AccessLevel.PUBLIC

suppressConstructorProperties

@Deprecated
public abstract boolean suppressConstructorProperties
Deprecated. Java 1.5 has already been end-of-lifed. As java 1.5 loses ground this method will eventually be removed.

Constructors are generated with the 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.

Default:
false

onConstructor

public abstract AllArgsConstructor.AnyAnnotation[] onConstructor
If you want your constructor to have additional annotations, you can specify them here.

Default:
{}

Lombok - v0.10.0-RC1

Copyright © 2009-2010 Reinier Zwitserloot, Roel Spilker and Robbert Jan Grootjans, licensed under the MIT licence.