Package org.instancio
package org.instancio
Instancio public-facing APIs; for usage examples see
Instancio
.- See Also:
-
ClassDescriptionA collection of static factory methods for creating assignments.An assignment that can be passed to the
InstancioApi.assign(Assignment...)
method.An interface for selectors that can be converted to aScope
.Allows specifying target depth using as a predicate.Allows specifying target depth.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.Represents an origin selector of a conditional assignment.Represents an origin and a destination of a conditional assigment.Defines optional methods that can be chained toAssign.given(TargetSelector)
builder expression.Defines methods one of which follow theAssign.given(TargetSelector)
builder expressions to create an assignment.Defines optional methods that can be chained toAssign.given(TargetSelector, TargetSelector)
builder expression.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.Instancio API for defining type parameters for generic classes.Instancio API for generating collections populated with random data.Model<T>A model is a template for creating objects and contains all the parameters for populating a class specified using Instancio API.Represents a singleNode
of a node hierarchy created for a givenType
.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.Represents a selector that can be scoped usingwithin(Scope...scopes)
.Provides static factory methods for creating selectors and selector scopes.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.Value of a target selector of an assignment.An assigment containing origin and destination selectors.An assigment containing origin and destination selectors, and a predicate that the origin value must satisfy for the assignment to be applied.Provides convenience methods for creatingPredicates
.