Package jakarta.validation.constraints
Annotation Type AssertTrue
-
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Repeatable(List.class) @Documented @Constraint(validatedBy={}) public @interface AssertTrue
The annotated element must be true. Supported types areboolean
andBoolean
.null
elements are considered valid.- Author:
- Emmanuel Bernard
-
-
-
payload
java.lang.Class<? extends Payload>[] payload
- Default:
- {}
-
-