Package org.instancio.generator.specs
Interface SizeGeneratorSpec<T>
- Type Parameters:
T
- the object type
- All Superinterfaces:
GeneratorSpec<T>
- All Known Subinterfaces:
CollectionGeneratorSpec<T>
,MapGeneratorSpec<K,
V>
Generator spec for specifying the size of an object.
- Since:
- 2.13.0
-
Method Details
-
size
The exact size of the object to generate.- Parameters:
size
- of the object- Returns:
- spec builder
- Since:
- 2.13.0
-
minSize
The minimum size of the object to generate.- Parameters:
size
- minimum size (inclusive)- Returns:
- spec builder
- Since:
- 2.13.0
-
maxSize
The maximum size of the object to generate.- Parameters:
size
- maximum size (inclusive)- Returns:
- spec builder
- Since:
- 2.13.0
-