Package org.instancio
package org.instancio
Instancio public-facing APIs; for usage examples see
Instancio
.- See Also:
-
ClassDescriptionAn interface for selectors that can be converted to a
Scope
.A builder for constructing predicate-based field selectors.Class for generating simple value types, such as strings, numbers, dates, and so on.Provides access to built-in generators that support customisation of generated values using the API.GetMethodSelector<T,R> A selector that matches a field using a getter method reference.A marker for selectors that can be grouped usingSelect.all(GroupableSelector...)
.Instancio API for creating instances of a class.InstancioApi<T>Instancio API for generating instances of a class populated with random data.This annotation provides support for generating metamodels for classes in order to avoid referencing fields as literal strings.Instancio API for defining type parameters for generic classes.Instancio API for generating collections populated with random data.The mode is used to specify strictness level, eitherMode.STRICT
orMode.LENIENT
, an idea borrowed from the Mockito library.Model<T>A model is a template for creating objects and contains all the parameters for populating a class specified using Instancio API.A callback that gets invoked after an object has been fully populated.A selector for matching targets using predicates.Provides methods for generating random values such as numbers, booleans, characters, and strings.Result<T>A result containing a created object and seed that was used for populating its values.A scope for narrowing down selector targets.A collection of static factory methods for creating selectors.A marker for selectors that contain other selectors.ATargetSelector
for selecting fields and classes.A builder for constructing predicate-based type selectors.TypeToken<T>A supplier that providesType
information.A supplier that providesType
information.