@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) public @interface CreateIfNull
Sets the CreateIfNull for type conversion.
Annotation usage:
The CreateIfNull annotation must be applied at field or method level.
Annotation parameters:
| Parameter | Required | Default | Description |
|---|---|---|---|
| value | no | false | The CreateIfNull property value. |
Example code:
@CreateIfNull( value = true ) private List<User> users;
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
value |
Copyright © 2000–2024 Apache Software Foundation. All rights reserved.