Package javax.validation.constraints
Annotation Interface AssertTrue
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
@Retention(RUNTIME)
@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
Modifier and TypeClassDescriptionstatic @interface
Defines severalAssertTrue
annotations on the same element. -
Optional Element Summary