Annotation Type Email


  • @Target({ANNOTATION_TYPE,PARAMETER,TYPE_USE})
    @Retention(RUNTIME)
    @Documented
    @API(status=EXPERIMENTAL,
         since="1.4.0")
    public @interface Email
    Constrain generated strings to be valid email addresses. By default, only addresses with unquoted local part and domain hosts are generated (e.g. me@myhost.com), because many - if not most - applications and web forms only accept those.

    Applies to parameters of type String that are also annotated with @ForAll.

    See Also:
    ForAll, EmailArbitrary
    • Optional Element Summary

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

      • ipv6Host

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

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

        boolean quotedLocalPart
        Are quoted local parts allowed.
        Default:
        false