public class Lorem extends Object
Modifier and Type | Method and Description |
---|---|
char |
character() |
char |
character(boolean includeUppercase) |
String |
characters() |
String |
characters(boolean includeUppercase) |
String |
characters(int fixedNumberOfCharacters) |
String |
characters(int fixedNumberOfCharacters,
boolean includeUppercase) |
String |
characters(int fixedNumberOfCharacters,
boolean includeUppercase,
boolean includeDigit) |
String |
characters(int minimumLength,
int maximumLength) |
String |
characters(int minimumLength,
int maximumLength,
boolean includeUppercase) |
String |
characters(int minimumLength,
int maximumLength,
boolean includeUppercase,
boolean includeDigit) |
String |
fixedString(int numberOfLetters)
Create a string with a fixed size.
|
String |
paragraph() |
String |
paragraph(int sentenceCount) |
List<String> |
paragraphs(int paragraphCount) |
String |
sentence()
Create a sentence with a random number of words within the range 4..10.
|
String |
sentence(int wordCount)
Create a sentence with a random number of words within the range (wordCount+1)..(wordCount+6).
|
String |
sentence(int wordCount,
int randomWordsToAdd)
Create a sentence with a random number of words within the range (wordCount+1)..(wordCount+randomWordsToAdd).
|
List<String> |
sentences(int sentenceCount) |
String |
word() |
List<String> |
words() |
List<String> |
words(int num) |
protected Lorem(Faker faker)
public char character()
public char character(boolean includeUppercase)
public String characters()
public String characters(boolean includeUppercase)
public String characters(int minimumLength, int maximumLength)
public String characters(int minimumLength, int maximumLength, boolean includeUppercase)
public String characters(int minimumLength, int maximumLength, boolean includeUppercase, boolean includeDigit)
public String characters(int fixedNumberOfCharacters)
public String characters(int fixedNumberOfCharacters, boolean includeUppercase)
public String characters(int fixedNumberOfCharacters, boolean includeUppercase, boolean includeDigit)
public String word()
public String sentence()
public String sentence(int wordCount)
wordCount
- public String sentence(int wordCount, int randomWordsToAdd)
randomWordsToAdd
to 0 to generate sentences with a fixed number of words.wordCount
- randomWordsToAdd
- public String paragraph(int sentenceCount)
public String paragraph()
public String fixedString(int numberOfLetters)
numberOfLetters
- size of the expected StringCopyright © 2019. All rights reserved.