All Classes and Interfaces
Class
Description
Base class for all internal generators.
An action hint that is passed from a generator to the engine
via the
Generator.hints()
method.Generator spec for arrays.
This hint is for generators that create arrays.
Allows mapping the result of a generator to another type.
Encapsulates the details of how values are assigned to an object's fields.
A setting that specifies whether objects
should be populated via fields or methods.
Deprecated.
Contains built-in generators for
java.util.concurrent.atomic
classes.Represents a setting that can be auto-adjusted based on the value
of another related setting.
This class is the entry point for processing Bean Validation annotations.
Generator spec for
BigDecimal
values
that supports AsGeneratorSpec
.Generator spec for
BigDecimal
.Spec for generating
BigDecimal
values.Spec for generating
BigInteger
values.Generator spec for
Boolean
values
that supports AsGeneratorSpec
.Generator spec for booleans.
Spec for generating
Boolean
values.Spec for generating
Byte
values.Generator spec for
Character
values
that supports AsGeneratorSpec
.Generator spec for characters.
Spec for generating
Character
values.Contains built-in generators for checksum-valid numbers.
Provides generators for checksum-valid numbers.
Generator spec for collections.
This hint is for generators that create collections.
A function for adding objects to a container.
A function for building a container.
Creates an instances of a container, or container's builder.
An interface for selectors that can be converted to a
Scope
.Spec for generating credit card numbers.
Spec for generating credit card numbers.
Generator spec for producing CSV.
Spec for generating CSV.
Collects declared and super class fields, excluding static fields.
Allows specifying target depth using as a predicate.
Allows specifying target depth.
Spec for generating
Double
values.Generator spec for
Duration
.Spec for generating
Duration
.Spec for generating
European Article Number
(EAN).
Spec for generating
European Article Number
(EAN).
Spec for generating email addresses
that supports
AsGeneratorSpec
.Internal generator used for generating email addresses for fields annotated
with
@Email
annotation from Jakarta Bean Validation API.Spec for generating email addresses.
Spec for generating email addresses.
A generator spec that emits given items to a selector's target.
Spec for
Enums
that supports AsGeneratorSpec
.Generator spec for
Enums
.Generator spec for
EnumSet
.Spec for generating enums.
Denotes experimental APIs that may be modified or removed in the future.
Utility class for constructing exceptions.
An interface for collecting fields from classes.
A builder for constructing predicate-based field selectors.
Spec for generating
File
values.Contains built-in finance-related generators.
Provides finance-related generators.
Flattens selectors into a list, similar to
stream().flatMap()
.Spec for generating
Float
values.Class for generating simple value types, such as strings, numbers,
dates, and so on.
A class for generating values of a specific type.
Provides additional information, such as settings and a random
instance to generators that require it.
Decorator for generators that might be missing hints.
Deprecated.
use
InstancioServiceProvider
instead.This class provides access to built-in generators.
Marker interface for configurable
Generator
s.Processes generator specs prior to generating a value,
for example, in order to customise spec parameters.
Provides access to built-in generators that support customisation
of generated values using the API.
A selector that matches a field using a getter method reference.
A marker for selectors that can be grouped using
Select.all(GroupableSelector...)
.Spec for generating hashes that supports
AsGeneratorSpec
.Spec for generating hashes
Spec for generating hashes
A hint that can be passed from a generator to the engine.
Hints are provided by
Generator
implementations to the engine to
support more flexibility in how objects are populated.Builder for constructing
Hints
.Contains built-in generators for various types of identifiers.
Provides generators for various types of identifiers.
Instancio API for creating instances of a class.
Instancio API for generating instances of a class populated with random data.
Exception generated by incorrect usage of the API.
Base class for all exceptions thrown by Instancio.
Deprecated.
this feature is deprecated and will be removed in version
3.0.0
.Instancio API for defining type parameters for generic classes.
Instancio API for generating collections populated with random data.
Instancio Service Provider Interface for providing custom:
generator mappings via
InstancioServiceProvider.getGeneratorProvider()
subtype mappings via InstancioServiceProvider.getTypeResolver()
class instantiation logic via InstancioServiceProvider.getTypeInstantiator()
Provides custom
Generator
classes.Provides custom instantiation logic.
Resolves subtype based on a given class.
Exception generated by incorrect usage of the SPI.
This exception (and its subclasses) indicates an unrecoverable error
and propagates all the way up to the user.
Spec for generating
Instant
values.Spec for generating
Integer
values.Denotes internal APIs that are not intended for external use.
An SPI that allows populating data structures using a method.
Hint containing details on how to build a container.
Internal hint related to
Generators
.Contains built-in generators for
java.io
classes.Provides generators for
java.io
classes.Generator spec for IPv4.
Spec for generating IPv4 addresses.
Spec for generating ISBN.
Spec for generating ISBN.
Defines all keys supported by Instancio.
Spec for generating
LocalDate
values.Spec for generating
LocalDateTime
values.Spec for generating
LocalTime
values.Spec for generating
Long
values.Generator spec for producing "Lorem ipsum..." text.
Spec for generating "lorem ipsum" text.
Generator spec for maps.
This hint is for generators that create maps.
Contains built-in generators for
java.math
classes.Provides generators for
java.math
classes.Deprecated.
A class containing modifier constants.
Resolves methods name for a given field.
A spec for generating numbers that pass the Mod10 checksum algorithm.
A spec for generating numbers that pass the Mod10 checksum algorithm.
A spec for generating numbers that pass the Mod10 checksum algorithm.
A spec for generating numbers that pass the Mod11 checksum algorithm.
A spec for generating numbers that pass the Mod11 checksum algorithm.
A spec for generating numbers that pass the Mod11 checksum algorithm.
The mode is used to specify strictness level, either
Mode.STRICT
or Mode.LENIENT
, an idea borrowed from the Mockito library.A model is a template for creating objects and contains all
the parameters for populating a class specified using Instancio API.
Generator spec for
MonthDay
types.Contains built-in generators for
java.net
classes.Provides generators for
java.net
classes.Contains built-in generators for
java.nio
classes.Provides generators for
java.nio
classes.Represents a single
Node
of a node hierarchy
created for a given Type
.Class for creating a node hierarchy for a given
Type
.Resolves
NodeKind
based on node's target class.Provides methods for specifying whether
null
can be generated.Generator spec for
Number
types
that supports AsGeneratorSpec
.Generator spec for numeric types.
Spec for generating
Number
types.A spec for generating numeric sequences
that supports
AsGeneratorSpec
.A spec for generating numeric sequences.
Spec for generating numeric sequences.
Spec for generating
OffsetDateTime
values.Spec for generating
OffsetTime
values.A callback that gets invoked after an object has been fully populated.
Generator spec for selecting a random value from an array.
Spec for selecting a random value from an array.
Generator spec for selecting a random value from collection.
Spec for selecting a random value from a collection.
A setting that specifies what should happen if an error occurs
when setting a field's value.
A setting that specifies what should happen if an error occurs
during a setter method invocation.
A setting that specifies what should happen if a setter cannot be resolved.
Generator spec for
Optional
.A filter for checking whether a
Package
should be excluded from processing.Generator spec for path values that supports
AsGeneratorSpec
.Spec for generating
Path
values.Generator spec for
Period
.Spec for generating
Period
.A selector for matching targets using predicates.
Provides methods for generating random values such as numbers,
booleans, characters, and strings.
Copied from the Apache Commons Math library.
Provides support for auto-adjusting 'range' settings that have a min and a max value.
Adjusts the upper bound of a range given a new lower bound.
Adjusts the lower bound of a range given a new upper bound.
Helper class for working with
java.lang.Record
classes.A result containing a created object and seed that was used for populating its values.
A scope for narrowing down selector targets.
Internal class for generating random initial seed values.
A collection of static factory methods for creating selectors.
An internal builder for constructing selectors.
A marker for selectors that contain other selectors.
Provides additional information to
InstancioServiceProvider
.Specifies the style of setter to use when
AssignmentType.METHOD
is enabled.A setting key represents a configuration item that can be
stored in a
Settings
instance.A builder for creating custom keys.
This class provides an API for updating settings programmatically.
Spec for generating
Short
values.Generator spec for specifying the size of an object.
Generator spec for Strings.
Spec for generating
String
values.Provides a method for specifying a specific subtype that should be generated.
A
TargetSelector
for selecting fields and classes.Generator spec for temporal values that supports
AsStringGeneratorSpec
.Contains built-in temporal generators.
Generator spec for
Temporal
types.Spec for generating
Temporal
types.Provides generators for
java.time
classes.Contains built-in text generators.
Provides text generators.
Helper class for mapping type variables to actual type arguments.
Deprecated.
use
InstancioServiceProvider
instead.A builder for constructing predicate-based type selectors.
A supplier that provides
Type
information.A supplier that provides
Type
information.Provides selector description in the "unused selectors" error message.
Exception triggered as a result of unused selectors.
Generator spec for
URI
values that supports AsGeneratorSpec
.Generator spec for
URI
.Spec for generating
URI
values.Generator spec for
URL
values that supports AsGeneratorSpec
.Generator spec for
URL
.Spec for generating
URL
values.Generator spec for generating UUID strings.
Spec for generating string representations of
UUID
values.A spec for generating simple value types, such as strings, numbers,
dates, and so on.
A functional interface for void methods.
Spec for generating
YearMonth
values.Spec for generating
Year
values.Spec for generating
ZonedDateTime
values.
AsGeneratorSpec
instead.