Package org.instancio
Interface InstancioOfClassApi<T>
-
- Type Parameters:
T
- type being created
- All Superinterfaces:
InstancioApi<T>
- All Known Implementing Classes:
ClassInstancioApiImpl
public interface InstancioOfClassApi<T> extends InstancioApi<T>
Instancio API for defining type parameters for generic classes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstancioApi<T>
withTypeParameters(Class<?>... type)
Method for supplying type parameters for generic classes.-
Methods inherited from interface org.instancio.InstancioApi
create, generate, ignore, map, onComplete, set, stream, supply, supply, toModel, withNullable, withSeed, withSettings
-
-
-
-
Method Detail
-
withTypeParameters
InstancioApi<T> withTypeParameters(Class<?>... type)
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
-
-