Package org.instancio.generator.specs
Interface SubtypeGeneratorSpec<T>
- Type Parameters:
T
- generated type
- All Superinterfaces:
GeneratorSpec<T>
- All Known Subinterfaces:
ArrayGeneratorSpec<T>
,CollectionGeneratorSpec<T>
,MapGeneratorSpec<K,
V>
Provides a method for specifying a specific subtype that should be generated.
- Since:
- 2.7.0
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies the subtype that should be generated.
-
Method Details
-
subtype
Specifies the subtype that should be generated.- Parameters:
type
- the subtype to generate- Returns:
- spec builder instance
- Since:
- 2.7.0
-