public class LoremIpsum4J extends Object
Suitable for creating sample data for test cases and performance tests.
| Modifier and Type | Field and Description |
|---|---|
static String |
LOREM_IPSUM |
| Constructor and Description |
|---|
LoremIpsum4J() |
| Modifier and Type | Method and Description |
|---|---|
String |
getParagraphs()
Returns two paragraphs of lorem ipsum.
|
String |
getParagraphs(int amount)
Returns paragraphs of lorem ipsum.
|
String |
getWords()
Returns one sentence (50 words) of the lorem ipsum text.
|
String |
getWords(int amount)
Returns words from the lorem ipsum text.
|
String |
getWords(int amount,
int startIndex)
Returns words from the lorem ipsum text.
|
public static final String LOREM_IPSUM
public String getWords()
public String getWords(int amount)
amount - Amount of wordspublic String getWords(int amount, int startIndex)
amount - Amount of wordsstartIndex - Start index of word to begin with (must be >= 0 and < 50)IndexOutOfBoundsException - If startIndex is < 0 or > 49public String getParagraphs()
public String getParagraphs(int amount)
amount - Amount of paragraphsCopyright © 2003–2018 eXo Platform SAS. All rights reserved.