Uses of Class
com.pholser.junit.quickcheck.generator.Generator
Packages that use Generator
Package
Description
-
Uses of Generator in com.pholser.junit.quickcheck.generator
Subclasses of Generator in com.pholser.junit.quickcheck.generatorModifier and TypeClassDescriptionclassProduces values for property parameters of types that have parameterizations that would also need generation, such as collections, maps, and predicates.classCtor<T>Produces instances of a class by generating values for the parameters of one of the constructors on the class, and invoking the constructor.classDecimalGenerator<T extends Number>Base class for generators of decimal types, such asdoubleandBigDecimal.classFields<T>Produces instances of a class by reflecting the class's fields and generating random values for them.classIntegralGenerator<T extends Number>Base class for generators of integral types, such asintandBigInteger.classProduces values for property parameters of typevoidorVoid.Fields in com.pholser.junit.quickcheck.generator declared as GeneratorFields in com.pholser.junit.quickcheck.generator with type parameters of type GeneratorModifier and TypeFieldDescriptionComponentizedGenerator.componentsFields.fieldGeneratorsCtor.parameterGeneratorsMethods in com.pholser.junit.quickcheck.generator with type parameters of type GeneratorModifier and TypeMethodDescription<T extends Generator<?>>
TMakes a new generator of the given type, provides it with access to other available generators, configures it with any configuration annotations present on the generator type, and supplies it any component generators it needs.Methods in com.pholser.junit.quickcheck.generator that return GeneratorModifier and TypeMethodDescription<T> Generator<T>Generators.constructor(Class<T> type, Class<?>... argumentTypes) Gives a generator that can produce an instance of the type described by a constructor of a given type that accepts the given types of arguments.Fields.copy()Generator.copy()Used by the framework to make a copy of the receiver.Generator<?>Gives a generator that can produce an instance of the type described by the field with the given name and containing type.Generator<?>Gives a generator that can produce instances of the type of the given reflected field.<T> Generator<T>Gives a generator that can produce an instance of the given type by reflecting the class's fields on up its class hierarchy and generating random values for them.<T> Generator<T>Gives a generator that can produce instances of one of a given set of related types on every generation.<T> Generator<T>Gives a generator that can produce instances of one of a given set of related types on every generation.Generator<?>Gives a generator that can produce instances of the type of the given reflected method parameter.<T> Generator<T>Gives a generator that can produce values of the given type, parameterized by the given "component" types.Methods in com.pholser.junit.quickcheck.generator that return types with arguments of type GeneratorMethods in com.pholser.junit.quickcheck.generator with parameters of type GeneratorModifier and TypeMethodDescription<T extends Generator<?>>
TMakes a new generator of the given type, provides it with access to other available generators, configures it with any configuration annotations present on the generator type, and supplies it any component generators it needs.static <T,U> T Lambdas.makeLambda(Class<T> lambdaType, Generator<U> returnValueGenerator, GenerationStatus status) Creates an instance of a given "functional interface" type, whose single abstract method returns values of the type produced by the given generator.<T> Generator<T>Gives a generator that can produce instances of one of a given set of related types on every generation.Method parameters in com.pholser.junit.quickcheck.generator with type arguments of type GeneratorModifier and TypeMethodDescriptionvoidComponentizedGenerator.addComponentGenerators(List<Generator<?>> newComponents) voidGenerator.addComponentGenerators(List<Generator<?>> newComponents) Adds component generators to this generator.Constructors in com.pholser.junit.quickcheck.generator with parameters of type Generator -
Uses of Generator in com.pholser.junit.quickcheck.generator.java.lang
Subclasses of Generator in com.pholser.junit.quickcheck.generator.java.langModifier and TypeClassDescriptionclassBase class for generators of values of typeString.classProduces values of typebooleanorBoolean.classProduces values of typebyteorByte.classProduces values of typecharorCharacter.classProduces values for property parameters of typedoubleorDouble.classclassProduces values of typefloatorFloat.classProduces values of typeintorInteger.classProduces values of typelongorLong.classProduces values of typeshortorShort.classProducesStrings whose characters are in the interval[0x0000, 0xD7FF]. -
Uses of Generator in com.pholser.junit.quickcheck.generator.java.math
Subclasses of Generator in com.pholser.junit.quickcheck.generator.java.mathModifier and TypeClassDescriptionclassProduces values of typeBigDecimal.classProduces values of typeBigInteger. -
Uses of Generator in com.pholser.junit.quickcheck.generator.java.nio.charset
Subclasses of Generator in com.pholser.junit.quickcheck.generator.java.nio.charset -
Uses of Generator in com.pholser.junit.quickcheck.generator.java.time
Subclasses of Generator in com.pholser.junit.quickcheck.generator.java.timeModifier and TypeClassDescriptionclassProduces values of typeClock.classProduces values of typeDuration.classProduces values of typeInstant.classProduces values of typeLocalDate.classProduces values of typeLocalDateTime.classProduces values of typeLocalTime.classProduces values of typeMonthDay.classProduces values of typeOffsetDateTime.classProduces values of typeOffsetTime.classProduces values of typePeriod.classProduces values of typeYear.classProduces values of typeYearMonth.classProduces values of typeZonedDateTime.classProduces values of typeZoneId.classProduces values of typeZoneOffset. -
Uses of Generator in com.pholser.junit.quickcheck.generator.java.util
Subclasses of Generator in com.pholser.junit.quickcheck.generator.java.utilModifier and TypeClassDescriptionclassProduces values of typeArrayList.classProduces values of typeBitSet.classCollectionGenerator<T extends Collection>Base class for generators ofCollections.classProduces values of typeDate.classProduces values of typeHashMap.classProduces values of typeHashSet.classProduces values of typeHashtable.classProduces values of typeLinkedHashMap.classProduces values of typeLinkedHashSet.classProduces values of typeLinkedList.classListGenerator<T extends List>Base class for generators ofLists.classProduces values of typeLocale.classMapGenerator<T extends Map>Base class for generators ofMaps.classProduces values of typeOptionalDouble.classProduces values of typeOptional.classProduces values of typeOptionalInt.classProduces values of typeOptionalLong.classProduces values of typeProperties.private static classprivate static classstatic classProduces values of typeUUIDthat are RFC 4122 Version 3 identifiers.static classProduces values of typeUUIDthat are RFC 4122 Version 4 identifiers.static classProduces values of typeUUIDthat are RFC 4122 Version 5 identifiers.classSetGenerator<T extends Set>Base class for generators ofSets.classProduces values of typeStack.classProduces values of typeTimeZone.classProduces values of typeVector. -
Uses of Generator in com.pholser.junit.quickcheck.generator.java.util.concurrent
Subclasses of Generator in com.pholser.junit.quickcheck.generator.java.util.concurrent -
Uses of Generator in com.pholser.junit.quickcheck.generator.java.util.function
Subclasses of Generator in com.pholser.junit.quickcheck.generator.java.util.functionModifier and TypeClassDescriptionclassBiFunctionGenerator<T,U, R> Produces values of typeBiFunction.classProduces values of typeBinaryOperator.classBiPredicateGenerator<T,U> Produces values of typeBiPredicate.classProduces values of typeDoubleFunction.classFunctionGenerator<T,R> Produces values of typeFunction.classProduces values of typeIntFunction.classProduces values of typeLongFunction.classProduces values of typePredicate.classProduces values of typeSupplier.classProduces values of typeToDoubleBiFunction.classProduces values of typeToDoubleFunction.classProduces values of typeToIntBiFunction.classProduces values of typeToIntFunction.classProduces values of typeToLongBiFunction.classProduces values of typeToLongFunction.classProduces values of typeUnaryOperator.Fields in com.pholser.junit.quickcheck.generator.java.util.function declared as GeneratorModifier and TypeFieldDescriptionBiPredicateGenerator.generatorPredicateGenerator.generatorToDoubleBiFunctionGenerator.generatorToDoubleFunctionGenerator.generatorToIntBiFunctionGenerator.generatorToIntFunctionGenerator.generatorToLongBiFunctionGenerator.generatorToLongFunctionGenerator.generator -
Uses of Generator in com.pholser.junit.quickcheck.guava.generator
Subclasses of Generator in com.pholser.junit.quickcheck.guava.generatorModifier and TypeClassDescriptionclassFunctionGenerator<F,T> Produces values of typeFunction.classProduces values of typeOptional.classProduces values of typePredicate.classProduces values of typeSupplier.Fields in com.pholser.junit.quickcheck.guava.generator declared as Generator -
Uses of Generator in com.pholser.junit.quickcheck.internal
Fields in com.pholser.junit.quickcheck.internal with type parameters of type GeneratorMethods in com.pholser.junit.quickcheck.internal that return GeneratorModifier and TypeMethodDescriptiondefault Generator<?>ParameterSampler.decideGenerator(GeneratorRepository repository, ParameterTypeContext p) private Generator<?>ParameterTypeContext.makeGenerator(Class<? extends Generator> generatorType) Methods in com.pholser.junit.quickcheck.internal that return types with arguments of type GeneratorMethods in com.pholser.junit.quickcheck.internal with parameters of type GeneratorModifier and TypeMethodDescriptionprivate voidParameterTypeContext.ensureCorrectType(Generator<?> generator) Method parameters in com.pholser.junit.quickcheck.internal with type arguments of type GeneratorModifier and TypeMethodDescriptionprivate Generator<?>ParameterTypeContext.makeGenerator(Class<? extends Generator> generatorType) -
Uses of Generator in com.pholser.junit.quickcheck.internal.generator
Subclasses of Generator in com.pholser.junit.quickcheck.internal.generatorModifier and TypeClassDescriptionclassclassclassclassclassclassLambdaGenerator<T,U> class(package private) classclassclassFields in com.pholser.junit.quickcheck.internal.generator declared as GeneratorModifier and TypeFieldDescriptionprivate final Generator<?>ArrayGenerator.componentNullableGenerator.delegateprivate final Generator<?>PropertyParameterGenerationContext.generatorprivate final Generator<?>GuaranteeValuesGenerator.restLambdaGenerator.returnValueGeneratorFields in com.pholser.junit.quickcheck.internal.generator with type parameters of type GeneratorModifier and TypeFieldDescriptionCompositeGenerator.composedGeneratorRepository.generatorsprivate final ServiceLoader<Generator>ServiceLoaderGeneratorSource.loaderMethods in com.pholser.junit.quickcheck.internal.generator with type parameters of type GeneratorMethods in com.pholser.junit.quickcheck.internal.generator that return GeneratorModifier and TypeMethodDescriptionprivate Generator<?>GeneratorRepository.compose(ParameterTypeContext parameter, List<Generator<?>> matches) (package private) Generator<?>CompositeGenerator.composed(int index) private Generator<?>GeneratorRepository.composeWeighted(ParameterTypeContext parameter, List<Weighted<Generator<?>>> matches) <U> Generator<U>GeneratorRepository.constructor(Class<U> type, Class<?>... argumentTypes) Generator<?>Generator<?><U> Generator<U>Generator<?>GeneratorRepository.generatorFor(ParameterTypeContext parameter) private Generator<?>GeneratorRepository.generatorForArrayType(ParameterTypeContext parameter) final <T> Generator<T>final <T> Generator<T>Generator<?>Generator<?>GeneratorRepository.produceGenerator(ParameterTypeContext parameter) <T> Generator<T>Methods in com.pholser.junit.quickcheck.internal.generator that return types with arguments of type GeneratorModifier and TypeMethodDescriptionGeneratorRepository.generatorsFor(ParameterTypeContext parameter) ServiceLoaderGeneratorSource.iterator()GeneratorRepository.matchingGenerators(ParameterTypeContext parameter) Methods in com.pholser.junit.quickcheck.internal.generator with parameters of type GeneratorModifier and TypeMethodDescriptionprivate voidGeneratorRepository.applyComponentGenerators(Generator<?> generator, List<Generator<?>> componentGenerators) final <T extends Generator<?>>
Tprivate voidGeneratorRepository.maybeRegisterGeneratorForType(Class<?> type, Generator<?> generator) final <T> Generator<T>private voidGeneratorRepository.registerGeneratorForType(Class<?> type, Generator<?> generator) private voidGeneratorRepository.registerHierarchy(Class<?> type, Generator<?> generator) private voidGeneratorRepository.registerTypes(Generator<?> generator) Method parameters in com.pholser.junit.quickcheck.internal.generator with type arguments of type GeneratorModifier and TypeMethodDescriptionvoidCompositeGenerator.addComponentGenerators(List<Generator<?>> newComponents) voidNullableGenerator.addComponentGenerators(List<Generator<?>> newComponents) private voidGeneratorRepository.applyComponentGenerators(Generator<?> generator, List<Generator<?>> componentGenerators) private Generator<?>GeneratorRepository.compose(ParameterTypeContext parameter, List<Generator<?>> matches) private Generator<?>GeneratorRepository.composeWeighted(ParameterTypeContext parameter, List<Weighted<Generator<?>>> matches) private voidCompositeGenerator.installCandidates(List<Weighted<Generator<?>>> candidates, AnnotatedElement element) private voidGeneratorRepository.maybeAddGeneratorByNamingConvention(ParameterTypeContext parameter, List<Generator<?>> matches) private voidGeneratorRepository.maybeAddGeneratorsFor(ParameterTypeContext parameter, List<Generator<?>> matches) private voidGeneratorRepository.maybeAddLambdaGenerator(ParameterTypeContext parameter, List<Generator<?>> matches) private voidGeneratorRepository.maybeAddMarkerInterfaceGenerator(ParameterTypeContext parameter, List<Generator<?>> matches) Constructors in com.pholser.junit.quickcheck.internal.generator with parameters of type GeneratorModifierConstructorDescription(package private)ArrayGenerator(Class<?> componentType, Generator<?> component) GuaranteeValuesGenerator(ExhaustiveDomainGenerator guaranteed, Generator<?> rest) (package private)LambdaGenerator(Class<T> lambdaType, Generator<U> returnValueGenerator) (package private)NullableGenerator(Generator<T> delegate) Constructor parameters in com.pholser.junit.quickcheck.internal.generator with type arguments of type GeneratorModifierConstructorDescription(package private)CompositeGenerator(List<Weighted<Generator<?>>> composed) privateGeneratorRepository(SourceOfRandomness random, Map<Class<?>, Set<Generator<?>>> generators) -
Uses of Generator in com.pholser.junit.quickcheck.internal.sampling
Methods in com.pholser.junit.quickcheck.internal.sampling that return GeneratorModifier and TypeMethodDescriptionGenerator<?>ExhaustiveParameterSampler.decideGenerator(GeneratorRepository repository, ParameterTypeContext p) Generator<?>TupleParameterSampler.decideGenerator(GeneratorRepository repository, ParameterTypeContext p)