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