Class ToLongFunctionGenerator<T>
java.lang.Object
com.pholser.junit.quickcheck.generator.Generator<T>
com.pholser.junit.quickcheck.generator.ComponentizedGenerator<ToLongFunction>
com.pholser.junit.quickcheck.generator.java.util.function.ToLongFunctionGenerator<T>
- Type Parameters:
T- type of parameter of produced function
- All Implemented Interfaces:
Gen<ToLongFunction>,Shrink<ToLongFunction>
Produces values of type
ToLongFunction.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate(SourceOfRandomness random, GenerationStatus status) Generates a value, possibly influenced by a source of randomness and metadata about the generation.intThis is intended for use only by junit-quickcheck itself, and not by creators of custom generators.voidprovide(Generators provided) Supplies the available generators to this one.Methods inherited from class com.pholser.junit.quickcheck.generator.ComponentizedGenerator
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, componentGenerators, configure, hasComponentsMethods inherited from class com.pholser.junit.quickcheck.generator.Generator
canShrink, compatibleWithTypeParameter, configurationAnnotationsOn, configure, copy, doShrink, gen, gen, magnitude, narrow, shrink, types
-
Field Details
-
generator
-
-
Constructor Details
-
ToLongFunctionGenerator
public ToLongFunctionGenerator()
-
-
Method Details
-
provide
Description copied from class:GeneratorSupplies the available generators to this one.
This is intended for use only by junit-quickcheck itself, and not by creators of custom generators.
- Overrides:
providein classComponentizedGenerator<ToLongFunction>- Parameters:
provided- repository of available generators
-
generate
Description copied from interface:GenGenerates a value, possibly influenced by a source of randomness and metadata about the generation.- Parameters:
random- source of randomness to be used when generating the valuestatus- an object that can be used to influence the generated value. For example, generating lists can use thesizemethod to generate lists with a given number of elements.- Returns:
- the generated value
-
numberOfNeededComponents
public int numberOfNeededComponents()Description copied from class:GeneratorThis is intended for use only by junit-quickcheck itself, and not by creators of custom generators.
- Overrides:
numberOfNeededComponentsin classGenerator<ToLongFunction>- Returns:
- how many component generators this generator needs
- See Also:
-