Uses of Interface
org.instancio.generator.GeneratorSpec
Packages that use GeneratorSpec
Package
Description
Instancio public-facing APIs; for usage examples see
Instancio
.Contains classes related to generators.
Defines generator specs.
Defines generator specs for Canada.
Defines generator specs for Poland.
Defines generator specs for USA.
Defines Service Provider Interfaces for providing custom implementations.
-
Uses of GeneratorSpec in org.instancio
Methods in org.instancio that return GeneratorSpecModifier and TypeMethodDescriptionGeneratorSpecProvider.getSpec
(Generators gen) Returns a customised generator spec.Methods in org.instancio with parameters of type GeneratorSpecModifier and TypeMethodDescription<T> Assignment
GivenOriginDestinationAction.elseGenerate
(GeneratorSpec<T> spec) Generates values using arbitrary generator specs.<V> CartesianProductApi
<T> CartesianProductApi.generate
(TargetSelector selector, GeneratorSpec<V> spec) Customises values using arbitrary generator specs.<S,
T> GivenOriginDestinationAction GivenOriginDestination.generate
(Predicate<S> predicate, GeneratorSpec<T> spec) Generates values using arbitrary generator specs.GivenOriginPredicate.generate
(TargetSelector selector, GeneratorSpec<T> spec) Generates values using arbitrary generator specs.<V> InstancioApi
<T> InstancioApi.generate
(TargetSelector selector, GeneratorSpec<V> spec) Customises values using arbitrary generator specs.<V> InstancioOperations
<T> InstancioOperations.generate
(TargetSelector selector, GeneratorSpec<V> spec) Customises values using arbitrary generator specs.<T> Assignment
ValueOf.generate
(GeneratorSpec<T> spec) Generates values using arbitrary generator specs. -
Uses of GeneratorSpec in org.instancio.generator
Subinterfaces of GeneratorSpec in org.instancio.generator -
Uses of GeneratorSpec in org.instancio.generator.specs
Subinterfaces of GeneratorSpec in org.instancio.generator.specsModifier and TypeInterfaceDescriptioninterface
Generator spec for arrays.interface
Allows mapping the result of a generator to another type.interface
Generator spec forBigDecimal
values that supportsAsGeneratorSpec
.interface
Generator spec forBigDecimal
.interface
Spec for generatingBigDecimal
values.interface
Spec for generatingBigInteger
values.interface
Generator spec forBoolean
values that supportsAsGeneratorSpec
.interface
Generator spec for booleans.interface
Spec for generatingBoolean
values.interface
Spec for generatingByte
values.interface
Generator spec forCharacter
values that supportsAsGeneratorSpec
.interface
Generator spec for characters.interface
Spec for generatingCharacter
values.interface
Generator spec for collections.interface
Spec for generating coordinate values.interface
Spec for generating spatial coordinate values.interface
Spec for generating credit card numbers.interface
Spec for generating credit card numbers.interface
Generator spec for producing CSV.interface
Spec for generating CSV.interface
Spec for generatingDouble
values.interface
Generator spec forDuration
.interface
Spec for generatingDuration
.interface
Spec for generating European Article Number (EAN).interface
Spec for generating European Article Number (EAN).interface
Spec for generating email addresses that supportsAsGeneratorSpec
.interface
Spec for generating email addresses.interface
Spec for generating email addresses.interface
A generator spec that emits given items to a selector's target.interface
EnumAsGeneratorSpec<E extends Enum<E>>
Spec forEnums
that supportsAsGeneratorSpec
.interface
EnumGeneratorSpec<E extends Enum<E>>
Generator spec forEnums
.interface
EnumSetGeneratorSpec<E extends Enum<E>>
Generator spec forEnumSet
.interface
Spec for generating enums.interface
FilePathSpec<T>
interface
Spec for generatingFile
values.interface
Spec for generatingFloat
values.interface
Spec for generating hashes that supportsAsGeneratorSpec
.interface
Spec for generating hashesinterface
Spec for generating hashesinterface
Generator spec forInstant
.interface
Spec for generatingInstant
values.interface
Spec for generatingInteger
values.interface
Generator spec for IPv4.interface
Spec for generating IPv4 addresses.interface
Spec for generating ISBN.interface
Spec for generating ISBN.interface
Spec for generatingLocalDate
values.interface
Generator spec forLocalDateTime
.interface
Spec for generatingLocalDateTime
values.interface
Generator spec forLocalTime
.interface
Spec for generatingLocalTime
values.interface
Spec for generatingLong
values.interface
Generator spec for producing "Lorem ipsum..." text.interface
Spec for generating "lorem ipsum" text.interface
A spec for generating numbers that pass the Luhn checksum algorithm.interface
A spec for generating numbers that pass the Luhn checksum algorithm.interface
A spec for generating numbers that pass the Luhn checksum algorithm.interface
MapGeneratorSpec<K,
V> Generator spec for maps.interface
A spec for generating numbers that pass the Mod10 checksum algorithm.interface
A spec for generating numbers that pass the Mod10 checksum algorithm.interface
A spec for generating numbers that pass the Mod10 checksum algorithm.interface
A spec for generating numbers that pass the Mod11 checksum algorithm.interface
A spec for generating numbers that pass the Mod11 checksum algorithm.interface
A spec for generating numbers that pass the Mod11 checksum algorithm.interface
Generator spec forMonthDay
types.interface
Provides methods for specifying whethernull
can be generated.interface
NumberAsGeneratorSpec<T extends Number>
Generator spec forNumber
types that supportsAsGeneratorSpec
.interface
NumberGeneratorSpec<T extends Number>
Generator spec for numeric types.interface
NumberSpec<T extends Number>
Spec for generatingNumber
types.interface
NumericSequenceAsGeneratorSpec<T extends Number & Comparable<T>>
A spec for generating numeric sequences that supportsAsGeneratorSpec
.interface
NumericSequenceGeneratorSpec<T extends Number & Comparable<T>>
A spec for generating numeric sequences.interface
NumericSequenceSpec<T extends Number & Comparable<T>>
Spec for generating numeric sequences.interface
Generator spec forOffsetDateTime
.interface
Spec for generatingOffsetDateTime
values.interface
Generator spec forOffsetTime
.interface
Spec for generatingOffsetTime
values.interface
Generator spec for selecting a random value from an array.interface
Spec for selecting a random value from an array.interface
Generator spec for selecting a random value from collection.interface
Spec for selecting a random value from a collection.interface
Generator spec forOptional
.interface
Generator spec for path values that supportsAsGeneratorSpec
.interface
interface
Spec for generatingPath
values.interface
Generator spec forPeriod
.interface
Spec for generatingPeriod
.interface
Spec for generatingShort
values.interface
Generator spec for specifying the size of an object.interface
Generator spec for Strings.interface
Spec for generatingString
values.interface
Provides a method for specifying a specific subtype that should be generated.interface
Generator spec for temporal values that supportsAsGeneratorSpec
.interface
Generator spec forTemporal
types.interface
TemporalSpec<T>
Spec for generatingTemporal
types.interface
Generator spec for text patterns that supportsAsGeneratorSpec
.interface
Spec for generating strings based on a pattern.interface
Spec for generating strings based on a pattern.interface
A spec for truncating temporal values.interface
Generator spec forURI
values that supportsAsGeneratorSpec
.interface
Generator spec forURI
.interface
Spec for generatingURI
values.interface
Generator spec forURL
values that supportsAsGeneratorSpec
.interface
Generator spec forURL
.interface
Spec for generatingURL
values.interface
Spec for generatingUUID
values.interface
Generator spec for generating UUID strings.interface
Spec for generating string representations ofUUID
values.interface
Spec for generatingYearMonth
values.interface
Spec for generatingYear
values.interface
Generator spec forZonedDateTime
.interface
Spec for generatingZonedDateTime
values.Methods in org.instancio.generator.specs that return GeneratorSpecModifier and TypeMethodDescriptionOptionalGeneratorSpec.allowEmpty()
Specifies that an emptyOptional
can be generated.default <R> GeneratorSpec
<R> Converts the generated value to another type using the specified mapping function.default GeneratorSpec
<String> AsGeneratorSpec.asString()
Converts the generated value to aString
.PathAsGeneratorSpec.createDirectory()
PathGeneratorSpec.createDirectory()
Terminal method to indicate that the generated path, including parent directories (if any), should be created as a directory in the file system.PathAsGeneratorSpec.createFile()
PathAsGeneratorSpec.createFile
(InputStream content) PathGeneratorSpec.createFile()
Terminal method to indicate that the generated path, including parent directories (if any), should be created as a file in the file system.PathGeneratorSpec.createFile
(InputStream content) Terminal method to indicate that the generated path, including parent directories (if any), should be created as a file in the file system and content provided by the input stream written to the file.Generates IPv4 address from CIDR notation, for example:fromCidr("192.168.1.0/24")
.NullableGeneratorSpec.nullable()
Indicates thatnull
value can be generated.UUIDStringGeneratorSpec.nullable()
Indicates thatnull
value can be generated.Selects a random value from the given choices.OneOfCollectionGeneratorSpec.oneOf
(Collection<T> values) Selects a random value from the given choices.TruncatableTemporalSpec.truncatedTo
(TemporalUnit unit) Truncates generated values to the specified unit.Methods in org.instancio.generator.specs with parameters of type GeneratorSpecModifier and TypeMethodDescriptionCsvGeneratorSpec.column
(String name, GeneratorSpec<?> generatorSpec) Specifies the column name and the generator spec for producing the values.CsvSpec.column
(String name, GeneratorSpec<?> generatorSpec) -
Uses of GeneratorSpec in org.instancio.generator.specs.can
Subinterfaces of GeneratorSpec in org.instancio.generator.specs.canModifier and TypeInterfaceDescriptioninterface
Spec for generating Canadian Social Insurance Number (SIN) that supportsAsGeneratorSpec
.interface
Spec for generating Canadian Social Insurance Number (SIN).interface
Spec for generating Canadian Social Insurance Number (SIN). -
Uses of GeneratorSpec in org.instancio.generator.specs.pol
Subinterfaces of GeneratorSpec in org.instancio.generator.specs.polModifier and TypeInterfaceDescriptioninterface
Spec for generating Polish VAT Identification Number (NIP).interface
Spec for generating Polish VAT Identification Number (NIP).interface
Spec for generating Polish National Identification Number (PESEL).interface
Spec for generating Polish National Identification Number (PESEL).interface
Spec for generating Polish Taxpayer Identification Number (REGON).interface
Spec for generating Polish Taxpayer Identification Number (REGON). -
Uses of GeneratorSpec in org.instancio.generator.specs.usa
Subinterfaces of GeneratorSpec in org.instancio.generator.specs.usaModifier and TypeInterfaceDescriptioninterface
Spec for generating US Social Security Number (SSN).interface
Spec for generating US Social Security Number (SSN). -
Uses of GeneratorSpec in org.instancio.spi
Methods in org.instancio.spi that return GeneratorSpecModifier and TypeMethodDescriptionInstancioServiceProvider.GeneratorProvider.getGenerator
(Node node, Generators generators) Returns a generator spec for the specifiednode
.