Uses of Interface
org.instancio.InstancioApi
Packages that use InstancioApi
Package
Description
Instancio public-facing APIs; for usage examples see
Instancio.Contains internal classes implementing the core functionality of Instancio.
-
Uses of InstancioApi in org.instancio
Subinterfaces of InstancioApi in org.instancioModifier and TypeInterfaceDescriptioninterfaceInstancio API for defining type parameters for generic classes.interfaceInstancio API for generating collections populated with random data.Methods in org.instancio that return InstancioApiModifier and TypeMethodDescription<V> InstancioApi<T>InstancioApi.generate(TargetSelector selector, GeneratorSpec<V> spec) Customises values using arbitrary generator specs.<V> InstancioApi<T>InstancioApi.generate(TargetSelector selector, GeneratorSpecProvider<V> gen) Customises values using built-in generators provided by thegenparameter, of typeGenerators.InstancioApi.ignore(TargetSelector selector) Specifies that a class or field should be ignored.InstancioApi.lenient()Disables strict mode in which unused selectors trigger an error.static <T> InstancioApi<T>Builder version ofInstancio.create(Model)that allows overriding of generation parameters of an existing model.static <T> InstancioApi<T>Instancio.of(TypeTokenSupplier<T> typeToken) Builder version ofInstancio.create(TypeTokenSupplier)that allows customisation of generated values.<V> InstancioApi<T>InstancioApi.onComplete(TargetSelector selector, OnCompleteCallback<V> callback) A callback that gets invoked after an object has been fully populated.<V> InstancioApi<T>InstancioApi.set(TargetSelector selector, V value) Sets a value to matching selector targets.InstancioApi.subtype(TargetSelector selector, Class<?> subtype) Maps target field or class to the given subtype.<V> InstancioApi<T>InstancioApi.supply(TargetSelector selector, Supplier<V> supplier) Supplies an object using aSupplier.<V> InstancioApi<T>InstancioApi.supply(TargetSelector selector, Generator<V> generator) Supplies an object using aGeneratorto matching selector targets.InstancioApi.withMaxDepth(int maxDepth) Specifies the maximum depth for populating an object.InstancioApi.withNullable(TargetSelector selector) Specifies that a field or class is nullable.InstancioApi.withSeed(long seed) Sets the seed value for the random number generator.InstancioApi.withSettings(Settings settings) Override defaultSettingsfor generating values.InstancioOfClassApi.withTypeParameters(Class<?>... types) Method for supplying type parameters for generic classes. -
Uses of InstancioApi in org.instancio.internal
Classes in org.instancio.internal that implement InstancioApiModifier and TypeClassDescriptionclassApiImpl<T>classfinal classOfCollectionApiImpl<T,C extends Collection<T>> final classOfMapApiImpl<K,V, M extends Map<K, V>> Methods in org.instancio.internal that return InstancioApiModifier and TypeMethodDescription<V> InstancioApi<T>ApiImpl.generate(TargetSelector selector, GeneratorSpec<V> spec) <V> InstancioApi<T>ApiImpl.generate(TargetSelector selector, GeneratorSpecProvider<V> gen) ApiImpl.ignore(TargetSelector selector) ApiImpl.lenient()<V> InstancioApi<T>ApiImpl.onComplete(TargetSelector selector, OnCompleteCallback<V> callback) <V> InstancioApi<T>ApiImpl.set(TargetSelector selector, V value) ApiImpl.subtype(TargetSelector selector, Class<?> subtype) <V> InstancioApi<T>ApiImpl.supply(TargetSelector selector, Supplier<V> supplier) <V> InstancioApi<T>ApiImpl.supply(TargetSelector selector, Generator<V> generator) ApiImpl.withMaxDepth(int maxDepth) ApiImpl.withNullable(TargetSelector selector) ApiImpl.withSeed(long seed) ApiImpl.withSettings(Settings settings) OfClassApiImpl.withTypeParameters(Class<?>... type)