Uses of Interface
org.instancio.InstancioObjectApi
Packages that use InstancioObjectApi
-
Uses of InstancioObjectApi in org.instancio
Methods in org.instancio that return InstancioObjectApiModifier and TypeMethodDescriptionInstancioObjectApi.applyFeed(TargetSelector selector, Feed feed) Applies the providedfeedto the specifiedselector.InstancioObjectApi.applyFeed(TargetSelector selector, FeedProvider provider) Creates a feed and applies it to the specifiedselector.InstancioObjectApi.assign(Assignment... assignments) Generates values based on given assignments.<V> InstancioObjectApi<T> InstancioObjectApi.filter(TargetSelector selector, FilterPredicate<V> predicate) Filters generated values using givenpredicate.<V> InstancioObjectApi<T> InstancioObjectApi.generate(TargetSelector selector, GeneratorSpec<V> spec) Customises values using arbitrary generator specs.<V> InstancioObjectApi<T> InstancioObjectApi.generate(TargetSelector selector, GeneratorSpecProvider<V> gen) Customises values using built-in generators provided by thegenparameter, of typeGenerators.InstancioObjectApi.ignore(TargetSelector selector) Specifies that a class or field should be ignored.InstancioObjectApi.lenient()Disables strict mode in which unused selectors trigger an error.static <T> InstancioObjectApi<T> Instancio.ofObject(T object) A builder API for populating fields of the given object with randomly generated values.<V> InstancioObjectApi<T> InstancioObjectApi.onComplete(TargetSelector selector, OnCompleteCallback<V> callback) A callback that gets invoked after the root object has been fully populated.<V> InstancioObjectApi<T> InstancioObjectApi.set(TargetSelector selector, V value) Sets a value to matching selector targets.InstancioObjectApi.setBlank(TargetSelector selector) Specifies that a blank object should be generated for the selected target.<V> InstancioObjectApi<T> InstancioObjectApi.setModel(TargetSelector selector, Model<V> model) Applies givenmodelto the specifiedselector.InstancioObjectApi.subtype(TargetSelector selector, Class<?> subtype) Maps target field or class to the given subtype.<V> InstancioObjectApi<T> InstancioObjectApi.supply(TargetSelector selector, Supplier<V> supplier) Supplies an object using aSupplier.<V> InstancioObjectApi<T> InstancioObjectApi.supply(TargetSelector selector, Generator<V> generator) Supplies an object using aGeneratorto matching selector targets.InstancioObjectApi.verbose()Outputs debug information toSystem.out.InstancioObjectApi.withFillType(FillType fillType) Sets the fill type for populating objects.InstancioObjectApi.withMaxDepth(int maxDepth) Specifies the maximum depth for populating an object.InstancioObjectApi.withNullable(TargetSelector selector) Specifies that a field or class is nullable.InstancioObjectApi.withSeed(long seed) Sets the seed value for the random number generator.<V> InstancioObjectApi<T> InstancioObjectApi.withSetting(SettingKey<V> key, V value) Overrides the setting for the givenkeywith the specifiedvalue.InstancioObjectApi.withSettings(Settings settings) Merges the specifiedSettingswith the current settings, allowing for the addition and update of settings.InstancioObjectApi.withUnique(TargetSelector selector) Specifies that the given selector's target(s) should have unique values.