|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Generator | |
---|---|
net.java.quickcheck | |
net.java.quickcheck.generator | |
net.java.quickcheck.generator.iterable | |
net.java.quickcheck.generator.support |
Uses of Generator in net.java.quickcheck |
---|
Subinterfaces of Generator in net.java.quickcheck | |
---|---|
interface |
ExtendibleGenerator<I,T>
Generator which depends upon other generator instances. |
interface |
FrequencyGenerator<T>
Create a frequency generator. |
interface |
ObjectGenerator<T>
Declarative object generator definition. |
interface |
StatefulGenerator<T>
Any generator keeping state information has to implemet this interface. |
Methods in net.java.quickcheck that return Generator | |
---|---|
Generator<?> |
GeneratorException.getGenerator()
|
Methods in net.java.quickcheck with parameters of type Generator | ||
---|---|---|
ExtendibleGenerator<I,T> |
ExtendibleGenerator.add(Generator<I> newGenerator)
Add a new generator. |
|
FrequencyGenerator<T> |
FrequencyGenerator.add(Generator<T> gen,
int weight)
Add a new input generator. |
|
static
|
QuickCheck.forAll(Generator<T> generator,
Characteristic<T> characteristic)
Check the Characteristic for all values generated by the given
Generator . |
|
static
|
QuickCheck.forAll(int runs,
Generator<T> generator,
Characteristic<T> characteristic)
Check the Characteristic for all values generated by the given
Generator . |
|
static
|
QuickCheck.forAllVerbose(Generator<T> generator,
Characteristic<T> characteristic)
Check the Characteristic for all values generated by the given
Generator . |
|
static
|
QuickCheck.forAllVerbose(int runs,
Generator<T> generator,
Characteristic<T> characteristic)
Check the Characteristic for all values generated by the given
Generator . |
|
void |
ObjectGenerator.ReturnValue.returns(Generator<? extends R> generator)
|
Constructors in net.java.quickcheck with parameters of type Generator | |
---|---|
GeneratorException(String message,
Generator<?> generator)
|
Uses of Generator in net.java.quickcheck.generator |
---|
Classes in net.java.quickcheck.generator that implement Generator | |
---|---|
class |
CloningMutationGenerator<T,M>
MutationGenerator that clones the prototype object with object
serialization. |
class |
MutationGenerator<T,M>
Generator based on mutation of prototype objects with a arbitrary generated mutation values. |
Methods in net.java.quickcheck.generator that return Generator | ||
---|---|---|
static
|
CombinedGenerators.arrays(Generator<? extends T> content,
Class<T> type)
Create a generator of arrays with values from the content generator. |
|
static
|
CombinedGenerators.arrays(Generator<? extends T> content,
Generator<Integer> size,
Class<T> type)
Create a generator of arrays with values from the content generator. |
|
static Generator<Character> |
PrimitiveGenerators.basicLatinCharacters()
Create a new character generator which generates latin characters. |
|
static Generator<Boolean> |
PrimitiveGenerators.booleans()
Create a generator for boolean values. |
|
static Generator<byte[]> |
CombinedGenerators.byteArrays()
Create a generator of byte arrays. |
|
static Generator<byte[]> |
CombinedGenerators.byteArrays(Generator<Byte> content,
Generator<Integer> size)
Create a generator of byte arrays. |
|
static Generator<byte[]> |
CombinedGenerators.byteArrays(Generator<Integer> size)
Create a generator of byte arrays. |
|
static Generator<Byte> |
PrimitiveGenerators.bytes()
Create a new byte generator which creates byte values ranging from Byte.MIN_VALUE to Byte.MAX_VALUE . |
|
static Generator<Byte> |
PrimitiveGenerators.bytes(byte lo,
byte hi)
Create a new byte generator which creates byte values ranging from lo to hi. |
|
static Generator<Byte> |
PrimitiveGenerators.bytes(byte lo,
byte hi,
Distribution distribution)
Create a new integer generator which creates integers ranging from lo to hi based on the given Distribution . |
|
static
|
Generators.cast(Generator<? extends T> generator)
Cast a generator to a super type generator. |
|
static Generator<Character> |
PrimitiveGenerators.characters()
Create a new character generator. |
|
static Generator<Character> |
PrimitiveGenerators.characters(Character... chars)
Create a new character generator which generates characters from the given character array. |
|
static Generator<Character> |
PrimitiveGenerators.characters(char lo,
char hi)
Create a new character generator which generates characters ranging from lo to hi. |
|
static Generator<Character> |
PrimitiveGenerators.characters(Collection<Character> chars)
Create a new character generator which generates characters from the given character collection. |
|
static Generator<Character> |
PrimitiveGenerators.characters(String string)
Create a new character generator which generates characters from the given string. |
|
static
|
PrimitiveGenerators.clonedValues(T prototype)
A cloning generator which uses object serialization to create clones of the prototype object. |
|
static Generator<Date> |
PrimitiveGenerators.dates()
Create a generator for date values. |
|
static Generator<Date> |
PrimitiveGenerators.dates(Date low,
Date high)
Create a generator for date values from low to high. |
|
static Generator<Date> |
PrimitiveGenerators.dates(long low,
long high)
Create a generator for date values from low to high. |
|
static Generator<Date> |
PrimitiveGenerators.dates(Long low,
Long high,
TimeUnit precision)
Create a generator for date values from low to high with the given precision. |
|
static Generator<Date> |
PrimitiveGenerators.dates(TimeUnit precision)
Create a generator for date values with the given precision. |
|
static Generator<Double> |
PrimitiveGenerators.doubles()
Create a new double generator which creates doubles ranging from Double.MIN_VALUE to Double.MAX_VALUE . |
|
static Generator<Double> |
PrimitiveGenerators.doubles(double lo,
double hi)
Create a new double generator which creates doubles ranging from lo to hi. |
|
static Generator<Double> |
PrimitiveGenerators.doubles(double lo,
double hi,
Distribution distribution)
Create a new double generator which creates doubles ranging from lo to hi based on the given Distribution . |
|
static
|
PrimitiveGenerators.enumValues(Class<T> enumClass)
Create a generator of enumeration values. |
|
static
|
PrimitiveGenerators.enumValues(Class<T> enumClass,
Collection<T> excludedCollection)
Create a generator of enumeration values. |
|
static
|
PrimitiveGenerators.enumValues(Class<T> enumClass,
T... excluded)
Create a generator of enumeration values. |
|
static
|
CombinedGenerators.excludeValues(Collection<T> values,
Collection<T> excluded)
Create a generator that omits a given set of values. |
|
static
|
CombinedGenerators.excludeValues(Collection<T> values,
T... excluded)
Create a generator that omits a given set of values. |
|
static
|
CombinedGenerators.excludeValues(Generator<T> generator,
Collection<T> excluded)
Create a generator that omits a given set of values. |
|
static
|
CombinedGenerators.excludeValues(Generator<T> generator,
T... excluded)
Create a generator that omits a given set of values. |
|
static
|
CombinedGenerators.excludeValues(Generator<T> generator,
T excluded)
Create a generator that omits a given value. |
|
static
|
PrimitiveGenerators.fixedValues(Collection<T> values)
Create a fixed value generator returning one of the values from the values collection. |
|
static
|
PrimitiveGenerators.fixedValues(T... values)
Create a fixed value generator returning one of the values from the values array. |
|
static
|
PrimitiveGenerators.fixedValues(T value)
Create a generator for fixed value generator. |
|
static Generator<int[]> |
CombinedGenerators.intArrays()
Create a generator of integer arrays. |
|
static Generator<int[]> |
CombinedGenerators.intArrays(Generator<Integer> size)
Create a generator of integer arrays. |
|
static Generator<int[]> |
CombinedGenerators.intArrays(Generator<Integer> content,
Generator<Integer> size)
Create a generator of integer arrays. |
|
static Generator<Integer> |
PrimitiveGenerators.integers()
Create a new integer generator which creates integers ranging from Integer.MIN_VALUE to Integer.MAX_VALUE . |
|
static Generator<Integer> |
PrimitiveGenerators.integers(int low)
Create a new integer generator which creates integers that are at equal or greater than low. |
|
static Generator<Integer> |
PrimitiveGenerators.integers(int lo,
int hi)
Create a new integer generator which creates integers ranging from lo to hi. |
|
static Generator<Integer> |
PrimitiveGenerators.integers(int lo,
int hi,
Distribution distribution)
Create a new integer generator which creates integers ranging from lo to hi based on the given Distribution . |
|
static
|
CombinedGenerators.iterators(Generator<? extends T> content)
Create a generator of iterators. |
|
static
|
CombinedGenerators.iterators(Generator<? extends T> content,
Generator<Integer> size)
Create a generator of iterators. |
|
static Generator<Character> |
PrimitiveGenerators.latin1SupplementCharacters()
Create a new character generator which generates latin-1 supplement characters. |
|
static
|
CombinedGenerators.lists(Generator<? extends T> content)
Create a generator of lists with values from the content generator. |
|
static
|
CombinedGenerators.lists(Generator<? extends T> content,
Generator<Integer> size)
Create a generator of lists with values from the content generator. |
|
static
|
CombinedGenerators.lists(Generator<? extends T> content,
int low)
Create a generator of lists with values from the content generator. |
|
static
|
CombinedGenerators.lists(Generator<? extends T> content,
int low,
int high)
Create a generator of lists with values from the content generator. |
|
static Generator<Long> |
PrimitiveGenerators.longs()
Create a new long generator which creates longs ranging from Long.MIN_VALUE to Long.MAX_VALUE . |
|
static Generator<Long> |
PrimitiveGenerators.longs(long lo,
long hi)
Create a new long generator which creates longs ranging from lo to hi. |
|
static Generator<Long> |
PrimitiveGenerators.longs(long lo,
long hi,
Distribution distribution)
Create a new long generator which creates longs ranging from lo to hi based on the given Distribution . |
|
static
|
CombinedGenerators.maps(Generator<K> keys,
Generator<V> values)
Create a generator of maps . |
|
static
|
CombinedGenerators.maps(Generator<K> keys,
Generator<V> values,
Generator<Integer> size)
Create a generator of maps . |
|
static
|
CombinedGenerators.maps(Map<K,V> supermap)
Create a generator of maps from a given map. |
|
static
|
CombinedGenerators.maps(Map<K,V> supermap,
Generator<Integer> sizes)
Create a generator of maps from a given map. |
|
static
|
CombinedGenerators.nonEmptyArrays(Generator<? extends T> content,
Class<T> type)
Create a generator of arrays that are not empty. |
|
static
|
CombinedGenerators.nonEmptyIterators(Generator<T> content)
Create a generator of iterators. |
|
static
|
CombinedGenerators.nonEmptyLists(Generator<? extends T> content)
Create a generator of non-empty lists with values from the content generator. |
|
static
|
CombinedGenerators.nonEmptySets(Generator<? extends T> content)
Create a generator of sets that are not empty. |
|
static
|
PrimitiveGenerators.nulls()
Create a generator for null values. |
|
static
|
CombinedGenerators.nullsAnd(Generator<T> generator)
Create a generator as a combination of a null value generator and generator of type T. |
|
static
|
CombinedGenerators.nullsAnd(Generator<T> generator,
int weight)
Create a generator as a combination of a null value generator and generator of type T. |
|
static Generator<Object> |
PrimitiveGenerators.objects()
Create a generator for java.lang.Object instances. |
|
static
|
CombinedGenerators.pairs(Generator<A> first,
Generator<B> second)
Create a generator of pairs of type A for the left value and type B for the right value. |
|
static Generator<Integer> |
PrimitiveGenerators.positiveIntegers()
Create a new integer generator which creates positive integers. |
|
static Generator<Integer> |
PrimitiveGenerators.positiveIntegers(int high)
Create a new integer generator which creates positive integers than are equal or smaller than high. |
|
static Generator<Long> |
PrimitiveGenerators.positiveLongs()
Create a new long generator which creates long values ranging from 1 to Long.MAX_VALUE . |
|
static Generator<Long> |
PrimitiveGenerators.positiveLongs(long hi)
Create a new long generator which creates long values ranging from 1 to hi. |
|
static
|
CombinedGenerators.sets(Generator<? extends T> content)
Create a generator of sets with values from the content generator. |
|
static
|
CombinedGenerators.sets(Generator<? extends T> content,
Generator<Integer> size)
Create a generator of sets with values from the content generator. |
|
static
|
CombinedGenerators.sets(Generator<? extends T> content,
int low,
int high)
Create a generator of sets with values from the content generator. |
|
static
|
CombinedGenerators.sets(Set<T> superset)
Create a generator of subsets from a given set. |
|
static
|
CombinedGenerators.sets(Set<T> superset,
Generator<Integer> size)
Create a generator of subsets from a given set. |
|
static
|
CombinedGenerators.sortedLists(Generator<T> content)
Create a generator of sorted lists with values from the content generator. |
|
static
|
CombinedGenerators.sortedLists(Generator<T> content,
Generator<Integer> size)
Create a generator of sorted lists with values from the content generator. |
|
static
|
CombinedGenerators.sortedLists(Generator<T> content,
int low,
int high)
Create a generator of sorted lists with values from the content generator. |
|
static
|
CombinedGenerators.triples(Generator<A> first,
Generator<B> second,
Generator<C> third)
Create a generator of triples of the types A, B and C for first, second and third value. |
|
static
|
CombinedGenerators.vectors(Generator<T> content,
int size)
Create a generator which will create vectors (here lists) of type T. |
Methods in net.java.quickcheck.generator with parameters of type Generator | ||
---|---|---|
static
|
CombinedGeneratorSamples.anyArray(Generator<? extends T> content,
Class<T> type)
See documentation of CombinedGenerators.arrays(net.java.quickcheck.Generator extends T>, java.lang.Class . |
|
static
|
CombinedGeneratorSamples.anyArray(Generator<? extends T> content,
Generator<Integer> size,
Class<T> type)
See documentation of CombinedGenerators.arrays(net.java.quickcheck.Generator extends T>, java.lang.Class . |
|
static
|
CombinedGeneratorSamples.anyArray(Generator<? extends T> content,
Generator<Integer> size,
Class<T> type)
See documentation of CombinedGenerators.arrays(net.java.quickcheck.Generator extends T>, java.lang.Class . |
|
static byte[] |
CombinedGeneratorSamples.anyByteArray(Generator<Byte> content,
Generator<Integer> size)
See documentation of CombinedGenerators.byteArrays() . |
|
static byte[] |
CombinedGeneratorSamples.anyByteArray(Generator<Byte> content,
Generator<Integer> size)
See documentation of CombinedGenerators.byteArrays() . |
|
static byte[] |
CombinedGeneratorSamples.anyByteArray(Generator<Integer> size)
See documentation of CombinedGenerators.byteArrays() . |
|
static
|
CombinedGeneratorSamples.anyEnsureValue(Collection<T> ensuredValues,
Generator<T> otherValues)
See documentation of CombinedGenerators.ensureValues(java.util.Collection . |
|
static
|
CombinedGeneratorSamples.anyExcludeValue(Generator<T> generator,
Collection<T> excluded)
See documentation of CombinedGenerators.excludeValues(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyExcludeValue(Generator<T> generator,
T... excluded)
See documentation of CombinedGenerators.excludeValues(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyExcludeValue(Generator<T> generator,
T excluded)
See documentation of CombinedGenerators.excludeValues(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyFrequency(Generator<T> generator,
int weight)
See documentation of CombinedGenerators.frequency(net.java.quickcheck.Generator . |
|
static int[] |
CombinedGeneratorSamples.anyIntArray(Generator<Integer> size)
See documentation of CombinedGenerators.intArrays() . |
|
static int[] |
CombinedGeneratorSamples.anyIntArray(Generator<Integer> content,
Generator<Integer> size)
See documentation of CombinedGenerators.intArrays() . |
|
static int[] |
CombinedGeneratorSamples.anyIntArray(Generator<Integer> content,
Generator<Integer> size)
See documentation of CombinedGenerators.intArrays() . |
|
static
|
CombinedGeneratorSamples.anyIterator(Generator<? extends T> content)
See documentation of CombinedGenerators.iterators(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorSamples.anyIterator(Generator<? extends T> content,
Generator<Integer> size)
See documentation of CombinedGenerators.iterators(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorSamples.anyIterator(Generator<? extends T> content,
Generator<Integer> size)
See documentation of CombinedGenerators.iterators(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorSamples.anyList(Generator<? extends T> content)
See documentation of CombinedGenerators.lists(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorSamples.anyList(Generator<? extends T> content,
Generator<Integer> size)
See documentation of CombinedGenerators.lists(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorSamples.anyList(Generator<? extends T> content,
Generator<Integer> size)
See documentation of CombinedGenerators.lists(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorSamples.anyList(Generator<? extends T> content,
int low)
See documentation of CombinedGenerators.lists(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorSamples.anyList(Generator<? extends T> content,
int low,
int high)
See documentation of CombinedGenerators.lists(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorSamples.anyMap(Generator<K> keys,
Generator<V> values)
See documentation of CombinedGenerators.maps(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyMap(Generator<K> keys,
Generator<V> values)
See documentation of CombinedGenerators.maps(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyMap(Generator<K> keys,
Generator<V> values,
Generator<Integer> size)
See documentation of CombinedGenerators.maps(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyMap(Generator<K> keys,
Generator<V> values,
Generator<Integer> size)
See documentation of CombinedGenerators.maps(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyMap(Generator<K> keys,
Generator<V> values,
Generator<Integer> size)
See documentation of CombinedGenerators.maps(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyMap(Map<K,V> supermap,
Generator<Integer> sizes)
See documentation of CombinedGenerators.maps(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyNonEmptyArray(Generator<? extends T> content,
Class<T> type)
See documentation of CombinedGenerators.nonEmptyArrays(net.java.quickcheck.Generator extends T>, java.lang.Class . |
|
static
|
CombinedGeneratorSamples.anyNonEmptyIterator(Generator<T> content)
See documentation of CombinedGenerators.nonEmptyIterators(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyNonEmptyList(Generator<? extends T> content)
See documentation of CombinedGenerators.nonEmptyLists(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorSamples.anyNonEmptySet(Generator<? extends T> content)
See documentation of CombinedGenerators.nonEmptySets(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorSamples.anyNullsAnd(Generator<T> generator)
See documentation of CombinedGenerators.nullsAnd(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyNullsAnd(Generator<T> generator,
int weight)
See documentation of CombinedGenerators.nullsAnd(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyOneOf(Generator<T> generator)
See documentation of CombinedGenerators.oneOf(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyPair(Generator<A> first,
Generator<B> second)
See documentation of CombinedGenerators.pairs(net.java.quickcheck.Generator, net.java.quickcheck.Generator) . |
|
static
|
CombinedGeneratorSamples.anyPair(Generator<A> first,
Generator<B> second)
See documentation of CombinedGenerators.pairs(net.java.quickcheck.Generator, net.java.quickcheck.Generator) . |
|
static
|
CombinedGeneratorSamples.anySet(Generator<? extends T> content)
See documentation of CombinedGenerators.sets(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorSamples.anySet(Generator<? extends T> content,
Generator<Integer> size)
See documentation of CombinedGenerators.sets(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorSamples.anySet(Generator<? extends T> content,
Generator<Integer> size)
See documentation of CombinedGenerators.sets(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorSamples.anySet(Generator<? extends T> content,
int low,
int high)
See documentation of CombinedGenerators.sets(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorSamples.anySet(Set<T> superset,
Generator<Integer> size)
See documentation of CombinedGenerators.sets(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorSamples.anySortedList(Generator<T> content)
See documentation of CombinedGenerators.sortedLists(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anySortedList(Generator<T> content,
Generator<Integer> size)
See documentation of CombinedGenerators.sortedLists(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anySortedList(Generator<T> content,
Generator<Integer> size)
See documentation of CombinedGenerators.sortedLists(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anySortedList(Generator<T> content,
int low,
int high)
See documentation of CombinedGenerators.sortedLists(net.java.quickcheck.Generator . |
|
static String |
PrimitiveGeneratorSamples.anyString(Generator<Character> characterGenerator)
See documentation of PrimitiveGenerators.strings() . |
|
static String |
PrimitiveGeneratorSamples.anyString(Generator<Integer> length,
Generator<Character> characters)
See documentation of PrimitiveGenerators.strings() . |
|
static String |
PrimitiveGeneratorSamples.anyString(Generator<Integer> length,
Generator<Character> characters)
See documentation of PrimitiveGenerators.strings() . |
|
static
|
CombinedGeneratorSamples.anyTriple(Generator<A> first,
Generator<B> second,
Generator<C> third)
See documentation of CombinedGenerators.triples(net.java.quickcheck.Generator, net.java.quickcheck.Generator, net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyTriple(Generator<A> first,
Generator<B> second,
Generator<C> third)
See documentation of CombinedGenerators.triples(net.java.quickcheck.Generator, net.java.quickcheck.Generator, net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyTriple(Generator<A> first,
Generator<B> second,
Generator<C> third)
See documentation of CombinedGenerators.triples(net.java.quickcheck.Generator, net.java.quickcheck.Generator, net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyUniqueValue(Generator<T> generator)
See documentation of CombinedGenerators.uniqueValues(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyUniqueValue(Generator<T> generator,
Comparator<? super T> comparator)
See documentation of CombinedGenerators.uniqueValues(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyUniqueValue(Generator<T> generator,
Comparator<? super T> comparator,
int tries)
See documentation of CombinedGenerators.uniqueValues(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyUniqueValue(Generator<T> generator,
int tries)
See documentation of CombinedGenerators.uniqueValues(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorSamples.anyVector(Generator<T> content,
int size)
See documentation of CombinedGenerators.vectors(net.java.quickcheck.Generator . |
|
static
|
CombinedGenerators.arrays(Generator<? extends T> content,
Class<T> type)
Create a generator of arrays with values from the content generator. |
|
static
|
CombinedGenerators.arrays(Generator<? extends T> content,
Generator<Integer> size,
Class<T> type)
Create a generator of arrays with values from the content generator. |
|
static
|
CombinedGenerators.arrays(Generator<? extends T> content,
Generator<Integer> size,
Class<T> type)
Create a generator of arrays with values from the content generator. |
|
static Generator<byte[]> |
CombinedGenerators.byteArrays(Generator<Byte> content,
Generator<Integer> size)
Create a generator of byte arrays. |
|
static Generator<byte[]> |
CombinedGenerators.byteArrays(Generator<Byte> content,
Generator<Integer> size)
Create a generator of byte arrays. |
|
static Generator<byte[]> |
CombinedGenerators.byteArrays(Generator<Integer> size)
Create a generator of byte arrays. |
|
static
|
Generators.cast(Generator<? extends T> generator)
Cast a generator to a super type generator. |
|
static
|
CombinedGenerators.ensureValues(Collection<T> ensuredValues,
Generator<T> otherValues)
Create a deterministic generator which guarantees that all values from the ensuredValues collection will be returned if enough calls to next() are issued (i.e. ensuredValues.size() <= # of
runs). |
|
static
|
CombinedGenerators.excludeValues(Generator<T> generator,
Collection<T> excluded)
Create a generator that omits a given set of values. |
|
static
|
CombinedGenerators.excludeValues(Generator<T> generator,
T... excluded)
Create a generator that omits a given set of values. |
|
static
|
CombinedGenerators.excludeValues(Generator<T> generator,
T excluded)
Create a generator that omits a given value. |
|
static
|
CombinedGenerators.frequency(Generator<T> generator,
int weight)
Create a frequency generator. |
|
static Generator<int[]> |
CombinedGenerators.intArrays(Generator<Integer> size)
Create a generator of integer arrays. |
|
static Generator<int[]> |
CombinedGenerators.intArrays(Generator<Integer> content,
Generator<Integer> size)
Create a generator of integer arrays. |
|
static Generator<int[]> |
CombinedGenerators.intArrays(Generator<Integer> content,
Generator<Integer> size)
Create a generator of integer arrays. |
|
static
|
CombinedGenerators.iterators(Generator<? extends T> content)
Create a generator of iterators. |
|
static
|
CombinedGenerators.iterators(Generator<? extends T> content,
Generator<Integer> size)
Create a generator of iterators. |
|
static
|
CombinedGenerators.iterators(Generator<? extends T> content,
Generator<Integer> size)
Create a generator of iterators. |
|
static
|
CombinedGenerators.lists(Generator<? extends T> content)
Create a generator of lists with values from the content generator. |
|
static
|
CombinedGenerators.lists(Generator<? extends T> content,
Generator<Integer> size)
Create a generator of lists with values from the content generator. |
|
static
|
CombinedGenerators.lists(Generator<? extends T> content,
Generator<Integer> size)
Create a generator of lists with values from the content generator. |
|
static
|
CombinedGenerators.lists(Generator<? extends T> content,
int low)
Create a generator of lists with values from the content generator. |
|
static
|
CombinedGenerators.lists(Generator<? extends T> content,
int low,
int high)
Create a generator of lists with values from the content generator. |
|
static
|
CombinedGenerators.maps(Generator<K> keys,
Generator<V> values)
Create a generator of maps . |
|
static
|
CombinedGenerators.maps(Generator<K> keys,
Generator<V> values)
Create a generator of maps . |
|
static
|
CombinedGenerators.maps(Generator<K> keys,
Generator<V> values,
Generator<Integer> size)
Create a generator of maps . |
|
static
|
CombinedGenerators.maps(Generator<K> keys,
Generator<V> values,
Generator<Integer> size)
Create a generator of maps . |
|
static
|
CombinedGenerators.maps(Generator<K> keys,
Generator<V> values,
Generator<Integer> size)
Create a generator of maps . |
|
static
|
CombinedGenerators.maps(Map<K,V> supermap,
Generator<Integer> sizes)
Create a generator of maps from a given map. |
|
static
|
CombinedGenerators.nonEmptyArrays(Generator<? extends T> content,
Class<T> type)
Create a generator of arrays that are not empty. |
|
static
|
CombinedGenerators.nonEmptyIterators(Generator<T> content)
Create a generator of iterators. |
|
static
|
CombinedGenerators.nonEmptyLists(Generator<? extends T> content)
Create a generator of non-empty lists with values from the content generator. |
|
static
|
CombinedGenerators.nonEmptySets(Generator<? extends T> content)
Create a generator of sets that are not empty. |
|
static
|
CombinedGenerators.nullsAnd(Generator<T> generator)
Create a generator as a combination of a null value generator and generator of type T. |
|
static
|
CombinedGenerators.nullsAnd(Generator<T> generator,
int weight)
Create a generator as a combination of a null value generator and generator of type T. |
|
static
|
CombinedGenerators.oneOf(Generator<T> generator)
OneOf is a convenience method for CombinedGenerators.frequency(Generator, int) when all generator
share the same weight. |
|
static
|
CombinedGenerators.pairs(Generator<A> first,
Generator<B> second)
Create a generator of pairs of type A for the left value and type B for the right value. |
|
static
|
CombinedGenerators.pairs(Generator<A> first,
Generator<B> second)
Create a generator of pairs of type A for the left value and type B for the right value. |
|
static
|
CombinedGenerators.sets(Generator<? extends T> content)
Create a generator of sets with values from the content generator. |
|
static
|
CombinedGenerators.sets(Generator<? extends T> content,
Generator<Integer> size)
Create a generator of sets with values from the content generator. |
|
static
|
CombinedGenerators.sets(Generator<? extends T> content,
Generator<Integer> size)
Create a generator of sets with values from the content generator. |
|
static
|
CombinedGenerators.sets(Generator<? extends T> content,
int low,
int high)
Create a generator of sets with values from the content generator. |
|
static
|
CombinedGenerators.sets(Set<T> superset,
Generator<Integer> size)
Create a generator of subsets from a given set. |
|
static
|
CombinedGeneratorsIterables.someArrays(Generator<? extends T> content,
Class<T> type)
See documentation of CombinedGenerators.arrays(net.java.quickcheck.Generator extends T>, java.lang.Class . |
|
static
|
CombinedGeneratorsIterables.someArrays(Generator<? extends T> content,
Generator<Integer> size,
Class<T> type)
See documentation of CombinedGenerators.arrays(net.java.quickcheck.Generator extends T>, java.lang.Class . |
|
static
|
CombinedGeneratorsIterables.someArrays(Generator<? extends T> content,
Generator<Integer> size,
Class<T> type)
See documentation of CombinedGenerators.arrays(net.java.quickcheck.Generator extends T>, java.lang.Class . |
|
static Iterable<byte[]> |
CombinedGeneratorsIterables.someByteArrays(Generator<Byte> content,
Generator<Integer> size)
See documentation of CombinedGenerators.byteArrays() . |
|
static Iterable<byte[]> |
CombinedGeneratorsIterables.someByteArrays(Generator<Byte> content,
Generator<Integer> size)
See documentation of CombinedGenerators.byteArrays() . |
|
static Iterable<byte[]> |
CombinedGeneratorsIterables.someByteArrays(Generator<Integer> size)
See documentation of CombinedGenerators.byteArrays() . |
|
static
|
CombinedGeneratorsIterables.someEnsureValues(Collection<T> ensuredValues,
Generator<T> otherValues)
See documentation of CombinedGenerators.ensureValues(java.util.Collection . |
|
static
|
CombinedGeneratorsIterables.someExcludeValues(Generator<T> generator,
Collection<T> excluded)
See documentation of CombinedGenerators.excludeValues(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someExcludeValues(Generator<T> generator,
T... excluded)
See documentation of CombinedGenerators.excludeValues(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someExcludeValues(Generator<T> generator,
T excluded)
See documentation of CombinedGenerators.excludeValues(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someFrequency(Generator<T> generator,
int weight)
See documentation of CombinedGenerators.frequency(net.java.quickcheck.Generator . |
|
static Iterable<int[]> |
CombinedGeneratorsIterables.someIntArrays(Generator<Integer> size)
See documentation of CombinedGenerators.intArrays() . |
|
static Iterable<int[]> |
CombinedGeneratorsIterables.someIntArrays(Generator<Integer> content,
Generator<Integer> size)
See documentation of CombinedGenerators.intArrays() . |
|
static Iterable<int[]> |
CombinedGeneratorsIterables.someIntArrays(Generator<Integer> content,
Generator<Integer> size)
See documentation of CombinedGenerators.intArrays() . |
|
static
|
CombinedGeneratorsIterables.someIterators(Generator<? extends T> content)
See documentation of CombinedGenerators.iterators(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorsIterables.someIterators(Generator<? extends T> content,
Generator<Integer> size)
See documentation of CombinedGenerators.iterators(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorsIterables.someIterators(Generator<? extends T> content,
Generator<Integer> size)
See documentation of CombinedGenerators.iterators(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorsIterables.someLists(Generator<? extends T> content)
See documentation of CombinedGenerators.lists(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorsIterables.someLists(Generator<? extends T> content,
Generator<Integer> size)
See documentation of CombinedGenerators.lists(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorsIterables.someLists(Generator<? extends T> content,
Generator<Integer> size)
See documentation of CombinedGenerators.lists(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorsIterables.someLists(Generator<? extends T> content,
int low)
See documentation of CombinedGenerators.lists(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorsIterables.someLists(Generator<? extends T> content,
int low,
int high)
See documentation of CombinedGenerators.lists(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorsIterables.someMaps(Generator<K> keys,
Generator<V> values)
See documentation of CombinedGenerators.maps(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someMaps(Generator<K> keys,
Generator<V> values)
See documentation of CombinedGenerators.maps(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someMaps(Generator<K> keys,
Generator<V> values,
Generator<Integer> size)
See documentation of CombinedGenerators.maps(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someMaps(Generator<K> keys,
Generator<V> values,
Generator<Integer> size)
See documentation of CombinedGenerators.maps(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someMaps(Generator<K> keys,
Generator<V> values,
Generator<Integer> size)
See documentation of CombinedGenerators.maps(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someMaps(Map<K,V> supermap,
Generator<Integer> sizes)
See documentation of CombinedGenerators.maps(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someNonEmptyArrays(Generator<? extends T> content,
Class<T> type)
See documentation of CombinedGenerators.nonEmptyArrays(net.java.quickcheck.Generator extends T>, java.lang.Class . |
|
static
|
CombinedGeneratorsIterables.someNonEmptyIterators(Generator<T> content)
See documentation of CombinedGenerators.nonEmptyIterators(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someNonEmptyLists(Generator<? extends T> content)
See documentation of CombinedGenerators.nonEmptyLists(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorsIterables.someNonEmptySets(Generator<? extends T> content)
See documentation of CombinedGenerators.nonEmptySets(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorsIterables.someNullsAnd(Generator<T> generator)
See documentation of CombinedGenerators.nullsAnd(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someNullsAnd(Generator<T> generator,
int weight)
See documentation of CombinedGenerators.nullsAnd(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someOneOf(Generator<T> generator)
See documentation of CombinedGenerators.oneOf(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.somePairs(Generator<A> first,
Generator<B> second)
See documentation of CombinedGenerators.pairs(net.java.quickcheck.Generator, net.java.quickcheck.Generator) . |
|
static
|
CombinedGeneratorsIterables.somePairs(Generator<A> first,
Generator<B> second)
See documentation of CombinedGenerators.pairs(net.java.quickcheck.Generator, net.java.quickcheck.Generator) . |
|
static
|
CombinedGeneratorsIterables.someSets(Generator<? extends T> content)
See documentation of CombinedGenerators.sets(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorsIterables.someSets(Generator<? extends T> content,
Generator<Integer> size)
See documentation of CombinedGenerators.sets(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorsIterables.someSets(Generator<? extends T> content,
Generator<Integer> size)
See documentation of CombinedGenerators.sets(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorsIterables.someSets(Generator<? extends T> content,
int low,
int high)
See documentation of CombinedGenerators.sets(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorsIterables.someSets(Set<T> superset,
Generator<Integer> size)
See documentation of CombinedGenerators.sets(net.java.quickcheck.Generator extends T>) . |
|
static
|
CombinedGeneratorsIterables.someSortedLists(Generator<T> content)
See documentation of CombinedGenerators.sortedLists(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someSortedLists(Generator<T> content,
Generator<Integer> size)
See documentation of CombinedGenerators.sortedLists(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someSortedLists(Generator<T> content,
Generator<Integer> size)
See documentation of CombinedGenerators.sortedLists(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someSortedLists(Generator<T> content,
int low,
int high)
See documentation of CombinedGenerators.sortedLists(net.java.quickcheck.Generator . |
|
static Iterable<String> |
PrimitiveGeneratorsIterables.someStrings(Generator<Character> characterGenerator)
See documentation of PrimitiveGenerators.strings() . |
|
static Iterable<String> |
PrimitiveGeneratorsIterables.someStrings(Generator<Integer> length,
Generator<Character> characters)
See documentation of PrimitiveGenerators.strings() . |
|
static Iterable<String> |
PrimitiveGeneratorsIterables.someStrings(Generator<Integer> length,
Generator<Character> characters)
See documentation of PrimitiveGenerators.strings() . |
|
static
|
CombinedGeneratorsIterables.someTriples(Generator<A> first,
Generator<B> second,
Generator<C> third)
See documentation of CombinedGenerators.triples(net.java.quickcheck.Generator, net.java.quickcheck.Generator, net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someTriples(Generator<A> first,
Generator<B> second,
Generator<C> third)
See documentation of CombinedGenerators.triples(net.java.quickcheck.Generator, net.java.quickcheck.Generator, net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someTriples(Generator<A> first,
Generator<B> second,
Generator<C> third)
See documentation of CombinedGenerators.triples(net.java.quickcheck.Generator, net.java.quickcheck.Generator, net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someUniqueValues(Generator<T> generator)
See documentation of CombinedGenerators.uniqueValues(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someUniqueValues(Generator<T> generator,
Comparator<? super T> comparator)
See documentation of CombinedGenerators.uniqueValues(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someUniqueValues(Generator<T> generator,
Comparator<? super T> comparator,
int tries)
See documentation of CombinedGenerators.uniqueValues(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someUniqueValues(Generator<T> generator,
int tries)
See documentation of CombinedGenerators.uniqueValues(net.java.quickcheck.Generator . |
|
static
|
CombinedGeneratorsIterables.someVectors(Generator<T> content,
int size)
See documentation of CombinedGenerators.vectors(net.java.quickcheck.Generator . |
|
static
|
CombinedGenerators.sortedLists(Generator<T> content)
Create a generator of sorted lists with values from the content generator. |
|
static
|
CombinedGenerators.sortedLists(Generator<T> content,
Generator<Integer> size)
Create a generator of sorted lists with values from the content generator. |
|
static
|
CombinedGenerators.sortedLists(Generator<T> content,
Generator<Integer> size)
Create a generator of sorted lists with values from the content generator. |
|
static
|
CombinedGenerators.sortedLists(Generator<T> content,
int low,
int high)
Create a generator of sorted lists with values from the content generator. |
|
static ExtendibleGenerator<Character,String> |
PrimitiveGenerators.strings(Generator<Character> characterGenerator)
Create a new string generator which creates strings of characters generated by the given character generator. |
|
static ExtendibleGenerator<Character,String> |
PrimitiveGenerators.strings(Generator<Integer> length,
Generator<Character> characters)
Create a new string generator which creates strings of characters generated by the given character generator with a length generated by the length generator. |
|
static ExtendibleGenerator<Character,String> |
PrimitiveGenerators.strings(Generator<Integer> length,
Generator<Character> characters)
Create a new string generator which creates strings of characters generated by the given character generator with a length generated by the length generator. |
|
protected T |
MutationGenerator.transform(Generator<T> inputGenerator)
|
|
static
|
CombinedGenerators.triples(Generator<A> first,
Generator<B> second,
Generator<C> third)
Create a generator of triples of the types A, B and C for first, second and third value. |
|
static
|
CombinedGenerators.triples(Generator<A> first,
Generator<B> second,
Generator<C> third)
Create a generator of triples of the types A, B and C for first, second and third value. |
|
static
|
CombinedGenerators.triples(Generator<A> first,
Generator<B> second,
Generator<C> third)
Create a generator of triples of the types A, B and C for first, second and third value. |
|
static
|
CombinedGenerators.uniqueValues(Generator<T> generator)
Create a generator that ensures unique values The actual values are created with an arbitrary generator. |
|
static
|
CombinedGenerators.uniqueValues(Generator<T> generator,
Comparator<? super T> comparator)
Create a generator that ensures unique values. |
|
static
|
CombinedGenerators.uniqueValues(Generator<T> generator,
Comparator<? super T> comparator,
int tries)
Create a generator that ensures unique values. |
|
static
|
CombinedGenerators.uniqueValues(Generator<T> generator,
int tries)
Create a generator that ensures unique values. |
|
static
|
CombinedGenerators.vectors(Generator<T> content,
int size)
Create a generator which will create vectors (here lists) of type T. |
Constructors in net.java.quickcheck.generator with parameters of type Generator | |
---|---|
CloningMutationGenerator(T prototype,
Generator<M> mutationValueGenerator)
|
|
MutationGenerator(Generator<T> prototypeGenerator,
Generator<M> mutationValueGenerator)
|
|
MutationGenerator(Generator<T> prototypeGenerator,
Generator<M> mutationValueGenerator)
|
Uses of Generator in net.java.quickcheck.generator.iterable |
---|
Methods in net.java.quickcheck.generator.iterable with parameters of type Generator | ||
---|---|---|
static
|
Iterables.toIterable(Generator<T> generator)
Convert a generator into a iterable . |
|
static
|
Iterables.toIterable(Generator<T> generator,
int numberOfRuns)
Convert a generator into a iterable . |
Uses of Generator in net.java.quickcheck.generator.support |
---|
Methods in net.java.quickcheck.generator.support with parameters of type Generator | |
---|---|
ExtendibleGenerator<Character,String> |
StringGenerator.add(Generator<Character> characterGenerator)
|
FrequencyGenerator<T> |
DefaultFrequencyGenerator.add(Generator<T> generator)
|
FrequencyGenerator<T> |
DefaultFrequencyGenerator.add(Generator<T> generator,
int weight)
|
protected abstract T |
AbstractTransformerGenerator.transform(Generator<I> inputGenerator)
|
protected T[] |
ArrayGenerator.transform(Generator<List<T>> inputGenerator)
|
Constructor parameters in net.java.quickcheck.generator.support with type arguments of type Generator | |
---|---|
RoundRobinGenerator(List<Generator<T>> generators)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |