Uses of Interface
org.instancio.Model
Package
Description
Instancio public-facing APIs; for usage examples see
Instancio
.Contains classes related to generators.
Defines generator specs.
-
Uses of Model in org.instancio
Modifier and TypeMethodDescriptionInstancioApi.toModel()
Creates a model containing all the information for populating a class.Modifier and TypeMethodDescriptionstatic <T> T
Creates an object populated using the given model.static <T> InstancioApi
<T> Builder version ofInstancio.create(Model)
that allows overriding of generation parameters of an existing model.static <T> CartesianProductApi
<T> Instancio.ofCartesianProduct
(Model<T> model) Generates the Cartesian product based on the values specified via thewith()
method.static <T> InstancioOfCollectionApi
<List<T>> Builder API for generating aList
using the specified model for list elements.static <T> InstancioOfCollectionApi
<Set<T>> Builder API for generating aSet
using the specified model for list elements.<V> CartesianProductApi
<T> CartesianProductApi.setModel
(TargetSelector selector, Model<V> model) Applies givenmodel
to the specifiedselector
.<V> InstancioApi
<T> InstancioApi.setModel
(TargetSelector selector, Model<V> model) Applies givenmodel
to the specifiedselector
.<V> InstancioOperations
<T> InstancioOperations.setModel
(TargetSelector selector, Model<V> model) Applies givenmodel
to the specifiedselector
.static <T> Stream
<T> Creates an infinite stream of objects populated using the given model. -
Uses of Model in org.instancio.generator
-
Uses of Model in org.instancio.generator.specs