Uses of Interface
org.instancio.TypeTokenSupplier
-
Uses of TypeTokenSupplier in org.instancio
Modifier and TypeInterfaceDescriptioninterface
TypeToken<T>
A supplier that providesType
information.Modifier and TypeMethodDescriptionstatic <T> T
Instancio.create
(TypeTokenSupplier<T> typeToken) Creates an object of type specified by the type token.static <T> InstancioApi
<T> Instancio.of
(TypeTokenSupplier<T> typeToken) Builder version ofInstancio.create(TypeTokenSupplier)
that allows customisation of generated values.static <T> CartesianProductApi
<T> Instancio.ofCartesianProduct
(TypeTokenSupplier<T> typeToken) Generates the Cartesian product based on the values specified via thewith()
method.static <T> InstancioOfCollectionApi
<List<T>> Instancio.ofList
(TypeTokenSupplier<T> elementTypeToken) Builder API for generating aList
using a type token.static <K,
V> InstancioOfCollectionApi <Map<K, V>> Instancio.ofMap
(TypeTokenSupplier<K> keyTypeToken, TypeTokenSupplier<V> valueTypeToken) Builder API for generating aMap
using type tokens.static <T> InstancioOfCollectionApi
<Set<T>> Instancio.ofSet
(TypeTokenSupplier<T> elementTypeToken) Builder API for generating aSet
using a type token.static <T> Stream
<T> Instancio.stream
(TypeTokenSupplier<T> typeToken) Creates an infinite stream of objects of type specified by the type token.