Lombok - v0.10.0-RC3

lombok
Annotation Type NoArgsConstructor


@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!

See Also:
RequiredArgsConstructor, AllArgsConstructor

Optional Element Summary
 AccessLevel access
          Sets the access level of the constructor.
 NoArgsConstructor.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.
 

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

onConstructor

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

Default:
{}

Lombok - v0.10.0-RC3

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