Class Web


  • @API(status=EXPERIMENTAL,
         since="1.4.0")
    public class Web
    extends java.lang.Object
    This is the home for static methods to produce arbitraries for Web-related domain types, like email addresses, ip addresses, domains, URLs etc.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static EmailArbitrary emails()
      Create an arbitrary that generates valid E-Mail addresses.
      static Arbitrary<java.lang.String> webDomains()
      Create an arbitrary that generates valid internet domain names.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • emails

        @API(status=EXPERIMENTAL,
             since="1.4.0")
        public static EmailArbitrary emails()
        Create an arbitrary that generates valid E-Mail addresses.
        Returns:
        a new arbitrary instance
      • webDomains

        @API(status=EXPERIMENTAL,
             since="1.5.5")
        public static Arbitrary<java.lang.String> webDomains()
        Create an arbitrary that generates valid internet domain names.
        Returns:
        a new arbitrary instance