Package org.instancio.internal
Class ClassInstancioApiImpl<T>
java.lang.Object
org.instancio.internal.InstancioApiImpl<T>
org.instancio.internal.ClassInstancioApiImpl<T>
- All Implemented Interfaces:
InstancioApi<T>
,InstancioOfClassApi<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionwithTypeParameters
(Class<?>... type) Method for supplying type parameters for generic classes.Methods inherited from class org.instancio.internal.InstancioApiImpl
addTypeParameters, create, generate, ignore, map, onComplete, supply, supply, toModel, withNullable, withSeed, withSettings
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.instancio.InstancioApi
create, generate, ignore, map, onComplete, supply, supply, toModel, withNullable, withSeed, withSettings
-
Constructor Details
-
ClassInstancioApiImpl
-
-
Method Details
-
withTypeParameters
Description copied from interface:InstancioOfClassApi
Method for supplying type parameters for generic classes.Example:
List<Address> addresses = Instancio.of(List.class) .withTypeParameters(Address.class) .create();
- Specified by:
withTypeParameters
in interfaceInstancioOfClassApi<T>
- Parameters:
type
- one or more types- Returns:
- API builder reference
-