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>
public class ClassInstancioApiImpl<T> extends InstancioApiImpl<T> implements InstancioOfClassApi<T>
-
-
Constructor Summary
Constructors Constructor Description ClassInstancioApiImpl(Class<T> klass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstancioApi<T>
withTypeParameters(Class<?>... type)
Method for supplying type parameters for generic classes.-
Methods inherited from class org.instancio.internal.InstancioApiImpl
addTypeParameters, create, generate, ignore, map, onComplete, set, stream, 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, set, stream, supply, supply, toModel, withNullable, withSeed, withSettings
-
-
-
-
Method Detail
-
withTypeParameters
public InstancioApi<T> withTypeParameters(Class<?>... type)
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
-
-