Package org.instancio
Interface InstancioOfClassApi<T>
- Type Parameters:
T
- type being created
- All Superinterfaces:
InstancioApi<T>
- All Known Implementing Classes:
ClassInstancioApiImpl
Instancio API for defining type parameters for generic classes.
-
Method Summary
Modifier and TypeMethodDescriptionwithTypeParameters
(Class<?>... type) Method for supplying type parameters for generic classes.Methods inherited from interface org.instancio.InstancioApi
create, generate, ignore, map, onComplete, supply, supply, toModel, withNullable, withSeed, withSettings
-
Method Details
-
withTypeParameters
Method for supplying type parameters for generic classes.Example:
List<Address> addresses = Instancio.of(List.class) .withTypeParameters(Address.class) .create();
- Parameters:
type
- one or more types- Returns:
- API builder reference
-