Package org.instancio.generators
Class AbstractRandomGenerator<T>
- java.lang.Object
-
- org.instancio.generators.AbstractRandomGenerator<T>
-
- Type Parameters:
T
- type generated by this generator
- All Implemented Interfaces:
Generator<T>
,GeneratorSpec<T>
- Direct Known Subclasses:
AbstractRandomNumberGeneratorSpec
,ArrayGenerator
,BooleanGenerator
,CharacterGenerator
,CollectionGenerator
,DateGenerator
,EnumGenerator
,InstantiatingGenerator
,LocalDateGenerator
,LocalDateTimeGenerator
,MapGenerator
,OneOfArrayGenerator
,OneOfCollectionGenerator
,StringGenerator
,UUIDGenerator
,XMLGregorianCalendarGenerator
public abstract class AbstractRandomGenerator<T> extends Object implements Generator<T>
Base class for generators that produce random values.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRandomGenerator(GeneratorContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeneratorContext
getContext()
protected RandomProvider
random()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.instancio.Generator
generate, getHints, isDelegating, setDelegate, targetType
-
-
-
-
Constructor Detail
-
AbstractRandomGenerator
protected AbstractRandomGenerator(GeneratorContext context)
-
-
Method Detail
-
getContext
public GeneratorContext getContext()
-
random
protected RandomProvider random()
-
-