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.
- Author:
- Emmanuel Bernard
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
Defines severalAssertTrue
annotations on the same element. -
Optional Element Summary