Annotation Type Present
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
@Repeatable(List.class)
@Documented
@Constraint(validatedBy=PresentValidator.class)
public @interface Present
The annotated
JsonNullable must be present, that is not undefined. An explicit null value is
present and therefore valid; a null reference is not.
The value extractor of this module unwraps JsonNullable by default, so the constraint only sees the
wrapper when unwrapping is skipped at the place of use:
@Present(payload = Unwrapping.Skip.class) private JsonNullable<String> color = JsonNullable.undefined();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefines severalPresentannotations on the same element. -
Optional Element Summary
Optional Elements