public class Internet extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Internet.UserAgent |
Modifier | Constructor and Description |
---|---|
protected |
Internet(Faker faker) |
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(boolean includeDigit) |
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 |
password(int minimumLength,
int maximumLength,
boolean includeUppercase,
boolean includeSpecial,
boolean includeDigit) |
String |
privateIpV4Address() |
String |
publicIpV4Address() |
String |
safeEmailAddress() |
String |
safeEmailAddress(String localPart) |
String |
slug() |
String |
slug(List<String> wordsOrNull,
String glueOrNull) |
String |
url() |
String |
userAgent(Internet.UserAgent userAgent) |
String |
userAgentAny() |
String |
uuid()
Returns a UUID (type 4) as String.
|
protected Internet(Faker faker)
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(boolean includeDigit)
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 password(int minimumLength, int maximumLength, boolean includeUppercase, boolean includeSpecial, boolean includeDigit)
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 valuespublic String slug(List<String> wordsOrNull, String glueOrNull)
wordsOrNull
- if null, then 2 Lorem
wordsglueOrNull
- if null, "_"public String uuid()
public String userAgent(Internet.UserAgent userAgent)
public String userAgentAny()
Copyright © 2019. All rights reserved.