java.lang.Object
io.github.astrapi69.random.object.RandomWebObjectFactory
The class
RandomWebObjectFactory
is a utility class to create random web objects-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Gets an infomail address from the given url.static String
Generates a random email-addressstatic String
randomFaxnumber
(String phonenumber) Generates a random faxnumber from a phone.static String
randomId()
Factory method for create a new random id and returns itstatic String
Generates a random mobil number from a mobilphone.static String
randomName
(char[] donatedChars) Factory method for create a new random name from the donated char arraystatic String
randomPassword
(int length) Generates a random password.static String
randomPassword
(Optional<Integer> length) Generates a random password.static String
Generates a random phonenumber.static String
Generates a random name for a website.
-
Method Details
-
getInfomailFromWebsite
Gets an infomail address from the given url.- Parameters:
url
- The url.- Returns:
- Returns an infomail address from the given url.
-
randomEmail
Generates a random email-address- Returns:
- The random email-address.
-
randomFaxnumber
Generates a random faxnumber from a phone.- Parameters:
phonenumber
- The phonenumber.- Returns:
- Return's a random faxnumber from a phone.
-
randomMobilnumber
Generates a random mobil number from a mobilphone.- Returns:
- Return's a random mobil number from a mobilphone.
-
randomPassword
Generates a random password.- Parameters:
length
- The length from the password.- Returns:
- The password.
-
randomPassword
Generates a random password.- Parameters:
length
- The length from the password as Optional.- Returns:
- The password.
-
randomPhonenumber
Generates a random phonenumber.- Returns:
- Return's a random phonenumber.
-
randomWebsite
Generates a random name for a website.- Returns:
- Returns a random name for a website.
-
randomId
Factory method for create a new random id and returns it- Returns:
- the created random id.
-
randomName
Factory method for create a new random name from the donated char array- Parameters:
donatedChars
- The Characters for the name- Returns:
- A random Name.
-