Class LoremIpsumGenerator
java.lang.Object
org.instancio.internal.generator.AbstractGenerator<String>
org.instancio.internal.generator.text.LoremIpsumGenerator
- All Implemented Interfaces:
Generator<String>
,GeneratorSpec<String>
,LoremIpsumGeneratorSpec
public class LoremIpsumGenerator
extends AbstractGenerator<String>
implements LoremIpsumGeneratorSpec
-
Field Summary
Fields inherited from interface org.instancio.generator.specs.LoremIpsumGeneratorSpec
DEFAULT_PARAGRAPHS, DEFAULT_WORDS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a generated value.paragraphs
(int paragraphs) Number of paragraphs to generate.words
(int words) Number of words to generate.Methods inherited from class org.instancio.internal.generator.AbstractGenerator
getContext, hints
-
Constructor Details
-
LoremIpsumGenerator
-
-
Method Details
-
words
Description copied from interface:LoremIpsumGeneratorSpec
Number of words to generate. Default isLoremIpsumGeneratorSpec.DEFAULT_WORDS
.- Specified by:
words
in interfaceLoremIpsumGeneratorSpec
- Returns:
- spec builder
-
paragraphs
Description copied from interface:LoremIpsumGeneratorSpec
Number of paragraphs to generate. Default isLoremIpsumGeneratorSpec.DEFAULT_PARAGRAPHS
.- Specified by:
paragraphs
in interfaceLoremIpsumGeneratorSpec
- Returns:
- spec builder
-
generate
Description copied from interface:Generator
Returns a generated value.If this method produces random data, the data needs to be generated using the provided
Random
instance. This ensures generated values are reproducible for a given seed value.
-