Annotation Type Email


  • @Target({ANNOTATION_TYPE,PARAMETER,TYPE_USE})
    @Retention(RUNTIME)
    @Documented
    @API(status=EXPERIMENTAL,
         since="1.3.9")
    public @interface Email
    Constrain strings to be valid email addresses. Applies to string parameters which are also annotated with @ForAll.
    See Also:
    ForAll, EmailArbitrary
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean domainHost
      Are hosts with domain name allowed.
      boolean ipv4Host
      Are hosts with ipv4 addresses allowed.
      boolean ipv6Host
      Are hosts with ipv6 addresses allowed.
      boolean quotedLocalPart
      Are quoted local parts allowed.
      boolean unquotedLocalPart
      Are unquoted local parts allowed.
    • Element Detail

      • domainHost

        boolean domainHost
        Are hosts with domain name allowed.
        Default:
        true
      • ipv6Host

        boolean ipv6Host
        Are hosts with ipv6 addresses allowed.
        Default:
        true
      • ipv4Host

        boolean ipv4Host
        Are hosts with ipv4 addresses allowed.
        Default:
        true
      • quotedLocalPart

        boolean quotedLocalPart
        Are quoted local parts allowed.
        Default:
        true
      • unquotedLocalPart

        boolean unquotedLocalPart
        Are unquoted local parts allowed.
        Default:
        true