Package jakarta.validation.constraints
Annotation Type Email
-
@Documented @Constraint(validatedBy={}) @Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Repeatable(List.class) public @interface Email
The string has to be a well-formed email address. Exact semantics of what makes up a valid email address are left to Jakarta Validation providers. AcceptsCharSequence
.null
elements are considered valid.- Since:
- 2.0
- Author:
- Emmanuel Bernard, Hardy Ferentschik
-
-
-
payload
java.lang.Class<? extends Payload>[] payload
- Default:
- {}
-
-
-
flags
Pattern.Flag[] flags
- Returns:
- used in combination with
regexp()
in order to specify a regular expression option
- Default:
- {}
-
-