public class ERXLoremIpsumGenerator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PARAGRAPH |
static String |
SENTENCE |
static String |
WORD |
Constructor and Description |
---|
ERXLoremIpsumGenerator() |
Modifier and Type | Method and Description |
---|---|
static String |
all()
Returns the entire Lorem text.
|
static String |
firstParagraph()
Returns the first paragraph from Lorem Ipsum text.
|
static String |
firstSentence()
Returns the first sentence of the first paragraph from Lorem text.
|
static String |
generate(String type,
int count)
Generates Lorem text using an enumerated type.
|
static String[] |
list(int size)
Returns a list of single sentences from the Lorem text.
|
static String[] |
list(int size,
int numberOfSentences)
Returns a list of a given number of sentences from the Lorem text.
|
static String |
paragraph()
Returns a random paragraph of Lorem text.
|
static String |
paragraph(int numberOfParagraphs)
Returns a particular paragraph from Lorem text.
|
static String |
paragraphs(int numberOfParagraphs)
Returns any number of random paragraphs of Lorem text.
|
static String |
sentence()
Returns a random sentence from the Lorem text.
|
static String |
sentences(int numberOfSentences)
Returns a given number of random sentences from the Lorem text.
|
static String |
word()
Returns a single, randomly chosen, lowercase word from Lorem text.
|
static String |
words(int numberOfWords)
Returns a specific number of random, lowercase, space-delimited words from Lorem text.
|
static String |
words(int min,
int max)
Returns a number of random, lowercase, space-delimited words between min and max.
|
static String |
words(int min,
int max,
int maxLength)
Returns a number of random, lowercase, space-delimited words between min and max.
|
public static final String PARAGRAPH
public static final String SENTENCE
public static final String WORD
public static String all()
public static String firstParagraph()
public static String firstSentence()
public static String[] list(int size)
size
- public static String[] list(int size, int numberOfSentences)
size
- numberOfSentences
- public static String paragraph()
public static String paragraph(int numberOfParagraphs)
numberOfParagraphs
- public static String paragraphs(int numberOfParagraphs)
numberOfParagraphs
- public static String sentence()
public static String sentences(int numberOfSentences)
numberOfSentences
- public static String word()
public static String words(int numberOfWords)
numberOfWords
- public static String words(int min, int max, int maxLength)
min
- max
- maxLength
- public static String words(int min, int max)
min
- max
- public static String generate(String type, int count)
type
- count
- Copyright © 2002 – 2020 Project Wonder.