@Documented @Repeatable(value: NotNullElementsConstraintList) @Target(value: [FIELD, METHOD, PARAMETER, TYPE_USE, ANNOTATION_TYPE]) @Retention(value: RUNTIME) @jakarta.validation.Constraint(validatedBy: []) @interface NotNullElementsConstraint
The annotated element must not contain null
elements.
Collection
and Map
types. In case of Maps
, both keys and values must be not-null
. Message interpolation key is
org.klokwrk.lib.lo.validation.constraint.NotNullElementsConstraint.message
.
null
containers (Collection
and Map
), or empty containers are not reported as violations.