Module de.cuioss.test.generator
Class Iterables
java.lang.Object
de.cuioss.test.generator.internal.net.java.quickcheck.generator.iterable.Iterables
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> intCalculate the size of anIterable.static <T> Iterable<T>toIterable(Generator<T> generator) static <T> Iterable<T>toIterable(Generator<T> generator, int numberOfRuns) Convert a generator into aniterable.
-
Method Details
-
toIterable
-
toIterable
Convert a generator into aniterable.- Parameters:
numberOfRuns- to execute the runner
-
sizeOf
Calculate the size of anIterable.The size of an
Iterableis the number ofIterator.next()calls not throwing aNoSuchElementException.- Parameters:
iterable- to calculate the size of
-