public class Faker
extends java.lang.Object
| Constructor and Description |
|---|
Faker() |
Faker(java.util.Locale locale) |
Faker(java.util.Locale locale,
java.util.Random random) |
Faker(java.util.Random random) |
| Modifier and Type | Method and Description |
|---|---|
Address |
address() |
Ancient |
ancient() |
App |
app() |
Artist |
artist() |
Avatar |
avatar() |
Beer |
beer() |
Book |
book() |
Bool |
bool() |
java.lang.String |
bothify(java.lang.String string)
Applies both a
numerify(String) and a letterify(String)
over the incoming string. |
java.lang.String |
bothify(java.lang.String string,
boolean isUpper)
Applies both a
numerify(String) and a letterify(String)
over the incoming string. |
Business |
business() |
Cat |
cat() |
ChuckNorris |
chuckNorris() |
Code |
code() |
Color |
color() |
Commerce |
commerce() |
Company |
company() |
Crypto |
crypto() |
Currency |
currency() |
DateAndTime |
date() |
Demographic |
demographic() |
Dog |
dog() |
DragonBall |
dragonBall() |
Educator |
educator() |
Esports |
esports() |
java.lang.String |
expression(java.lang.String expression)
Allows the evaluation of native YML expressions to allow you to build your own.
|
File |
file() |
Finance |
finance() |
Food |
food() |
Friends |
friends() |
FunnyName |
funnyName() |
GameOfThrones |
gameOfThrones() |
Hacker |
hacker() |
HarryPotter |
harryPotter() |
Hipster |
hipster() |
HitchhikersGuideToTheGalaxy |
hitchhikersGuideToTheGalaxy() |
Hobbit |
hobbit() |
HowIMetYourMother |
howIMetYourMother() |
IdNumber |
idNumber() |
static Faker |
instance()
Constructs Faker instance with default argument.
|
static Faker |
instance(java.util.Locale locale)
Constructs Faker instance with provided
Locale. |
static Faker |
instance(java.util.Locale locale,
java.util.Random random)
Constructs Faker instance with provided
Locale and Random. |
static Faker |
instance(java.util.Random random)
Constructs Faker instance with provided
Random. |
Internet |
internet() |
Job |
job() |
LeagueOfLegends |
leagueOfLegends() |
Lebowski |
lebowski() |
java.lang.String |
letterify(java.lang.String letterString)
Returns a string with the '?' characters in the parameter replaced with random alphabetic
characters.
|
java.lang.String |
letterify(java.lang.String letterString,
boolean isUpper)
Returns a string with the '?' characters in the parameter replaced with random alphabetic
characters.
|
LordOfTheRings |
lordOfTheRings() |
Lorem |
lorem() |
Matz |
matz() |
Music |
music() |
Name |
name() |
Number |
number() |
java.lang.String |
numerify(java.lang.String numberString)
Returns a string with the '#' characters in the parameter replaced with random digits between 0-9 inclusive.
|
Options |
options() |
Overwatch |
overwatch() |
PhoneNumber |
phoneNumber() |
Pokemon |
pokemon() |
RandomService |
random() |
java.lang.String |
regexify(java.lang.String regex)
Generates a String that matches the given regular expression.
|
java.lang.String |
resolve(java.lang.String key) |
RickAndMorty |
rickAndMorty() |
Robin |
robin() |
RockBand |
rockBand() |
Shakespeare |
shakespeare() |
SlackEmoji |
slackEmoji() |
Space |
space() |
StarTrek |
starTrek() |
Stock |
stock() |
Superhero |
superhero() |
Team |
team() |
TwinPeaks |
twinPeaks() |
University |
university() |
Weather |
weather() |
Witcher |
witcher() |
Yoda |
yoda() |
Zelda |
zelda() |
public Faker()
public Faker(java.util.Locale locale)
public Faker(java.util.Random random)
public Faker(java.util.Locale locale,
java.util.Random random)
public static Faker instance()
Faker()public static Faker instance(java.util.Locale locale)
Locale.locale - - LocaleFaker(Locale)public static Faker instance(java.util.Random random)
Random.random - - RandomFaker(Random)public static Faker instance(java.util.Locale locale, java.util.Random random)
Locale and Random.locale - - Localerandom - - RandomFaker(Locale, Random)public java.lang.String numerify(java.lang.String numberString)
For example, the string "ABC##EFG" could be replaced with a string like "ABC99EFG".
numberString - public java.lang.String letterify(java.lang.String letterString)
For example, the string "12??34" could be replaced with a string like "12AB34".
letterString - public java.lang.String letterify(java.lang.String letterString,
boolean isUpper)
For example, the string "12??34" could be replaced with a string like "12AB34".
letterString - isUpper - public java.lang.String bothify(java.lang.String string)
numerify(String) and a letterify(String)
over the incoming string.string - public java.lang.String bothify(java.lang.String string,
boolean isUpper)
numerify(String) and a letterify(String)
over the incoming string.string - isUpper - public java.lang.String regexify(java.lang.String regex)
public RandomService random()
public Currency currency()
public Ancient ancient()
public App app()
public Artist artist()
public Avatar avatar()
public Music music()
public Name name()
public Number number()
public Internet internet()
public PhoneNumber phoneNumber()
public Pokemon pokemon()
public Lorem lorem()
public Address address()
public Book book()
public Business business()
public ChuckNorris chuckNorris()
public Color color()
public Commerce commerce()
public Company company()
public Crypto crypto()
public Hacker hacker()
public IdNumber idNumber()
public Options options()
public Code code()
public File file()
public Finance finance()
public Food food()
public GameOfThrones gameOfThrones()
public DateAndTime date()
public Demographic demographic()
public Dog dog()
public Educator educator()
public SlackEmoji slackEmoji()
public Shakespeare shakespeare()
public Space space()
public Superhero superhero()
public Bool bool()
public Team team()
public Beer beer()
public University university()
public Cat cat()
public Stock stock()
public LordOfTheRings lordOfTheRings()
public Zelda zelda()
public HarryPotter harryPotter()
public RockBand rockBand()
public Esports esports()
public Friends friends()
public Hipster hipster()
public Job job()
public TwinPeaks twinPeaks()
public RickAndMorty rickAndMorty()
public Yoda yoda()
public Matz matz()
public Witcher witcher()
public DragonBall dragonBall()
public FunnyName funnyName()
public HitchhikersGuideToTheGalaxy hitchhikersGuideToTheGalaxy()
public Hobbit hobbit()
public HowIMetYourMother howIMetYourMother()
public LeagueOfLegends leagueOfLegends()
public Overwatch overwatch()
public Robin robin()
public StarTrek starTrek()
public Weather weather()
public Lebowski lebowski()
public java.lang.String resolve(java.lang.String key)
public java.lang.String expression(java.lang.String expression)
expression - (see examples above)java.lang.RuntimeException - if unable to evaluate the expressionCopyright © 2018. All Rights Reserved.