Package jakarta.validation.constraints
Annotation Interface 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 are
boolean and Boolean.
null elements are considered valid.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefines severalAssertTrueannotations on the same element. -
Optional Element Summary
Optional Elements