Annotation Interface NullAllowed
@Target({PARAMETER,FIELD,ANNOTATION_TYPE,TYPE_USE})
@Retention(RUNTIME)
public @interface NullAllowed
Mark a parameter of a Property
method with this annotation to indicate that the parameter is nullable, and
to optionally configure the probability of generating a null value.
-
Optional Element Summary
Optional Elements
-
Element Details
-
probability
double probability- Returns:
- probability of generating
null, in the range [0,1]
- Default:
- 0.2
-