public class Faker extends Object
Constructor and Description |
---|
Faker() |
Faker(Locale locale) |
Faker(Locale locale,
Random random) |
Faker(Random random) |
public Faker()
public Faker(Locale locale)
public Faker(Random random)
public static Faker instance()
Faker()
public static Faker instance(Locale locale)
Locale
.locale
- - Locale
Faker(Locale)
public static Faker instance(Random random)
Random
.random
- - Random
Faker(Random)
public static Faker instance(Locale locale, Random random)
locale
- - Locale
random
- - Random
Faker(Locale, Random)
public String numerify(String numberString)
For example, the string "ABC##EFG" could be replaced with a string like "ABC99EFG".
numberString
- public String letterify(String letterString)
For example, the string "12??34" could be replaced with a string like "12AB34".
letterString
- public String letterify(String letterString, boolean isUpper)
For example, the string "12??34" could be replaced with a string like "12AB34".
letterString
- isUpper
- public String bothify(String string)
numerify(String)
and a letterify(String)
over the incoming string.string
- public String bothify(String string, boolean isUpper)
numerify(String)
and a letterify(String)
over the incoming string.string
- isUpper
- public String regexify(String regex)
public RandomService random()
public Currency currency()
public Ancient ancient()
public App app()
public Artist artist()
public Avatar avatar()
public Aviation aviation()
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 Medical medical()
public Country country()
public BackToTheFuture backToTheFuture()
public String expression(String expression)
The following are valid expressions:
expression
- (see examples above)RuntimeException
- if unable to evaluate the expressionCopyright © 2019. All rights reserved.