Class SimpleGeneratorBase
- java.lang.Object
-
- net.morimekta.providence.testing.generator.GeneratorBase<SimpleGeneratorBase,SimpleGeneratorContext>
-
- net.morimekta.providence.testing.generator.SimpleGeneratorBase
-
public final class SimpleGeneratorBase extends GeneratorBase<SimpleGeneratorBase,SimpleGeneratorContext>
Simple generator base that holds so special context. This is mainly a separate class to get rid of unneeded generics.
-
-
Constructor Summary
Constructors Constructor Description SimpleGeneratorBase()
Default constructor.SimpleGeneratorBase(SimpleGeneratorBase copyOf)
Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleGeneratorContext
createContext()
Create the context instance used when generating messages.-
Methods inherited from class net.morimekta.providence.testing.generator.GeneratorBase
deepCopy, enumGeneratorFor, generatorFor, getDefaultFillRate, getDefaultMaxCollectionSize, getFairy, getRandom, messageGeneratorFor, setDefaultFillRate, setDefaultMaxCollectionSize, setFairy, setRandom, withEnumGenerator, withMessageGenerator, withMessageGenerator
-
-
-
-
Constructor Detail
-
SimpleGeneratorBase
public SimpleGeneratorBase()
Default constructor.
-
SimpleGeneratorBase
public SimpleGeneratorBase(SimpleGeneratorBase copyOf)
Copy constructor.- Parameters:
copyOf
- Copy of instance.
-
-
Method Detail
-
createContext
public SimpleGeneratorContext createContext()
Description copied from class:GeneratorBase
Create the context instance used when generating messages.- Specified by:
createContext
in classGeneratorBase<SimpleGeneratorBase,SimpleGeneratorContext>
- Returns:
- The new context class.
-
-