Class RandomWebObjectFactory

java.lang.Object
io.github.astrapi69.random.object.RandomWebObjectFactory

public final class RandomWebObjectFactory extends Object
The class RandomWebObjectFactory is a utility class to create random web objects
  • Method Details

    • getInfomailFromWebsite

      public static String getInfomailFromWebsite(String url)
      Gets an infomail address from the given url.
      Parameters:
      url - The url.
      Returns:
      Returns an infomail address from the given url.
    • randomEmail

      public static String randomEmail()
      Generates a random email-address
      Returns:
      The random email-address.
    • randomFaxnumber

      public static String randomFaxnumber(String phonenumber)
      Generates a random faxnumber from a phone.
      Parameters:
      phonenumber - The phonenumber.
      Returns:
      Return's a random faxnumber from a phone.
    • randomMobilnumber

      public static String randomMobilnumber()
      Generates a random mobil number from a mobilphone.
      Returns:
      Return's a random mobil number from a mobilphone.
    • randomPassword

      public static String randomPassword(int length)
      Generates a random password.
      Parameters:
      length - The length from the password.
      Returns:
      The password.
    • randomPassword

      public static String randomPassword(Optional<Integer> length)
      Generates a random password.
      Parameters:
      length - The length from the password as Optional.
      Returns:
      The password.
    • randomPhonenumber

      public static String randomPhonenumber()
      Generates a random phonenumber.
      Returns:
      Return's a random phonenumber.
    • randomWebsite

      public static String randomWebsite()
      Generates a random name for a website.
      Returns:
      Returns a random name for a website.
    • randomId

      public static String randomId()
      Factory method for create a new random id and returns it
      Returns:
      the created random id.
    • randomName

      public static String randomName(char[] donatedChars)
      Factory method for create a new random name from the donated char array
      Parameters:
      donatedChars - The Characters for the name
      Returns:
      A random Name.