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> AssignmentGivenOriginDestinationAction.elseGenerate(GeneratorSpec<T> spec) Generates values using arbitrary generator specs.<V> CartesianProductApi<T> CartesianProductApi.generate(TargetSelector selector, GeneratorSpec<V> spec) <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) <T> AssignmentValueOf.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 TypeInterfaceDescriptioninterfaceGenerator spec for arrays.interfaceAllows mapping the result of a generator to another type.interfaceGenerator spec forBigDecimalvalues that supportsAsGeneratorSpec.interfaceGenerator spec forBigDecimal.interfaceSpec for generatingBigDecimalvalues.interfaceSpec for generatingBigIntegervalues.interfaceGenerator spec forBooleanvalues that supportsAsGeneratorSpec.interfaceGenerator spec for booleans.interfaceSpec for generatingBooleanvalues.interfaceSpec for generatingBytevalues.interfaceGenerator spec forCharactervalues that supportsAsGeneratorSpec.interfaceGenerator spec for characters.interfaceSpec for generatingCharactervalues.interfaceGenerator spec for collections.interfaceSpec for generating credit card numbers.interfaceSpec for generating credit card numbers.interfaceGenerator spec for producing CSV.interfaceSpec for generating CSV.interfaceSpec for generatingDoublevalues.interfaceGenerator spec forDuration.interfaceSpec for generatingDuration.interfaceSpec for generating European Article Number (EAN).interfaceSpec for generating European Article Number (EAN).interfaceSpec for generating email addresses that supportsAsGeneratorSpec.interfaceSpec for generating email addresses.interfaceSpec for generating email addresses.interfaceA generator spec that emits given items to a selector's target.interfaceEnumAsGeneratorSpec<E extends Enum<E>>Spec forEnumsthat supportsAsGeneratorSpec.interfaceEnumGeneratorSpec<E extends Enum<E>>Generator spec forEnums.interfaceEnumSetGeneratorSpec<E extends Enum<E>>Generator spec forEnumSet.interfaceSpec for generating enums.interfaceFilePathSpec<T>interfaceSpec for generatingFilevalues.interfaceSpec for generatingFloatvalues.interfaceSpec for generating hashes that supportsAsGeneratorSpec.interfaceSpec for generating hashesinterfaceSpec for generating hashesinterfaceGenerator spec forInstant.interfaceSpec for generatingInstantvalues.interfaceSpec for generatingIntegervalues.interfaceGenerator spec for IPv4.interfaceSpec for generating IPv4 addresses.interfaceSpec for generating ISBN.interfaceSpec for generating ISBN.interfaceSpec for generatingLocalDatevalues.interfaceGenerator spec forLocalDateTime.interfaceSpec for generatingLocalDateTimevalues.interfaceGenerator spec forLocalTime.interfaceSpec for generatingLocalTimevalues.interfaceSpec for generatingLongvalues.interfaceGenerator spec for producing "Lorem ipsum..." text.interfaceSpec for generating "lorem ipsum" text.interfaceA spec for generating numbers that pass the Luhn checksum algorithm.interfaceA spec for generating numbers that pass the Luhn checksum algorithm.interfaceA spec for generating numbers that pass the Luhn checksum algorithm.interfaceMapGeneratorSpec<K,V> Generator spec for maps.interfaceA spec for generating numbers that pass the Mod10 checksum algorithm.interfaceA spec for generating numbers that pass the Mod10 checksum algorithm.interfaceA spec for generating numbers that pass the Mod10 checksum algorithm.interfaceA spec for generating numbers that pass the Mod11 checksum algorithm.interfaceA spec for generating numbers that pass the Mod11 checksum algorithm.interfaceA spec for generating numbers that pass the Mod11 checksum algorithm.interfaceGenerator spec forMonthDaytypes.interfaceProvides methods for specifying whethernullcan be generated.interfaceNumberAsGeneratorSpec<T extends Number>Generator spec forNumbertypes that supportsAsGeneratorSpec.interfaceNumberGeneratorSpec<T extends Number>Generator spec for numeric types.interfaceNumberSpec<T extends Number>Spec for generatingNumbertypes.interfaceNumericSequenceAsGeneratorSpec<T extends Number & Comparable<T>>A spec for generating numeric sequences that supportsAsGeneratorSpec.interfaceNumericSequenceGeneratorSpec<T extends Number & Comparable<T>>A spec for generating numeric sequences.interfaceNumericSequenceSpec<T extends Number & Comparable<T>>Spec for generating numeric sequences.interfaceGenerator spec forOffsetDateTime.interfaceSpec for generatingOffsetDateTimevalues.interfaceGenerator spec forOffsetTime.interfaceSpec for generatingOffsetTimevalues.interfaceGenerator spec for selecting a random value from an array.interfaceSpec for selecting a random value from an array.interfaceGenerator spec for selecting a random value from collection.interfaceSpec for selecting a random value from a collection.interfaceGenerator spec forOptional.interfaceGenerator spec for path values that supportsAsGeneratorSpec.interfaceinterfaceSpec for generatingPathvalues.interfaceGenerator spec forPeriod.interfaceSpec for generatingPeriod.interfaceSpec for generatingShortvalues.interfaceGenerator spec for specifying the size of an object.interfaceGenerator spec for Strings.interfaceSpec for generatingStringvalues.interfaceProvides a method for specifying a specific subtype that should be generated.interfaceGenerator spec for temporal values that supportsAsGeneratorSpec.interfaceGenerator spec forTemporaltypes.interfaceTemporalSpec<T>Spec for generatingTemporaltypes.interfaceGenerator spec for text patterns that supportsAsGeneratorSpec.interfaceSpec for generating strings based on a pattern.interfaceSpec for generating strings based on a pattern.interfaceA spec for truncating temporal values.interfaceGenerator spec forURIvalues that supportsAsGeneratorSpec.interfaceGenerator spec forURI.interfaceSpec for generatingURIvalues.interfaceGenerator spec forURLvalues that supportsAsGeneratorSpec.interfaceGenerator spec forURL.interfaceSpec for generatingURLvalues.interfaceSpec for generatingUUIDvalues.interfaceGenerator spec for generating UUID strings.interfaceSpec for generating string representations ofUUIDvalues.interfaceSpec for generatingYearMonthvalues.interfaceSpec for generatingYearvalues.interfaceGenerator spec forZonedDateTime.interfaceSpec for generatingZonedDateTimevalues.Methods in org.instancio.generator.specs that return GeneratorSpecModifier and TypeMethodDescriptionOptionalGeneratorSpec.allowEmpty()Specifies that an emptyOptionalcan 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 thatnullvalue can be generated.UUIDStringGeneratorSpec.nullable()Indicates thatnullvalue 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 TypeInterfaceDescriptioninterfaceSpec for generating Canadian Social Insurance Number (SIN) that supportsAsGeneratorSpec.interfaceSpec for generating Canadian Social Insurance Number (SIN).interfaceSpec 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 TypeInterfaceDescriptioninterfaceSpec for generating Polish VAT Identification Number (NIP).interfaceSpec for generating Polish VAT Identification Number (NIP).interfaceSpec for generating Polish National Identification Number (PESEL).interfaceSpec for generating Polish National Identification Number (PESEL).interfaceSpec for generating Polish Taxpayer Identification Number (REGON).interfaceSpec 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 TypeInterfaceDescriptioninterfaceSpec for generating US Social Security Number (SSN).interfaceSpec 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.