Annotation Interface CreateIfNull


@Retention(RUNTIME) @Target({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;
 
 
Author:
Rainer Hermanns
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
  • Element Details

    • value

      boolean value
      Returns:
      The CreateIfNull value. Defaults to true.
      Default:
      true