public class Internet extends Object
Modifier and Type | Method and Description |
---|---|
String |
avatar()
Generates a random avatar url based on a collection of profile pictures of real people.
|
String |
domainName() |
String |
domainSuffix() |
String |
domainWord() |
String |
emailAddress() |
String |
emailAddress(String localPart) |
String |
image()
Generates a random image url based on the lorempixel service.
|
String |
image(Integer width,
Integer height,
Boolean gray,
String text)
Same as image() but allows client code to choose a few image characteristics
|
String |
ipV4Address()
returns an IPv4 address in dot separated octets.
|
String |
ipV4Cidr() |
String |
ipV6Address()
Returns an IPv6 address in hh:hh:hh:hh:hh:hh:hh:hh format.
|
String |
ipV6Cidr() |
String |
macAddress() |
String |
macAddress(String prefix)
Returns a MAC address in the following format: 6-bytes in MM:MM:MM:SS:SS:SS format.
|
String |
password() |
String |
password(int minimumLength,
int maximumLength) |
String |
password(int minimumLength,
int maximumLength,
boolean includeUppercase) |
String |
password(int minimumLength,
int maximumLength,
boolean includeUppercase,
boolean includeSpecial) |
String |
privateIpV4Address() |
String |
publicIpV4Address() |
String |
safeEmailAddress() |
String |
safeEmailAddress(String localPart) |
String |
slug() |
String |
slug(List<String> wordsOrNull,
String glueOrNull) |
String |
url() |
public String emailAddress()
public String safeEmailAddress()
public String domainName()
public String domainWord()
public String domainSuffix()
public String url()
public String avatar()
public String image()
public String image(Integer width, Integer height, Boolean gray, String text)
width
- the image widthheight
- the image heightgray
- true for gray image and false for color imagetext
- optional custom text on the selected picturepublic String password()
public String password(int minimumLength, int maximumLength)
public String password(int minimumLength, int maximumLength, boolean includeUppercase)
public String password(int minimumLength, int maximumLength, boolean includeUppercase, boolean includeSpecial)
public String macAddress(String prefix)
Returns a MAC address in the following format: 6-bytes in MM:MM:MM:SS:SS:SS format.
prefix
- a prefix to put on the front of the addresspublic String macAddress()
macAddress(String)
public String ipV4Address()
public String privateIpV4Address()
public String publicIpV4Address()
public String ipV4Cidr()
public String ipV6Address()
Returns an IPv6 address in hh:hh:hh:hh:hh:hh:hh:hh format.
public String ipV6Cidr()
public String slug()
Lorem
words as the valuesCopyright © 2017. All Rights Reserved.