Class Iterables
- java.lang.Object
-
- de.cuioss.test.generator.internal.net.java.quickcheck.generator.iterable.Iterables
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> intsizeOf(Iterable<T> iterable)Calculate 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 Detail
-
toIterable
public static <T> Iterable<T> toIterable(Generator<T> generator)
-
toIterable
public static <T> Iterable<T> toIterable(Generator<T> generator, int numberOfRuns)
Convert a generator into aniterable.- Parameters:
numberOfRuns- to execute the runner
-
sizeOf
public static <T> int sizeOf(Iterable<T> iterable)
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
-
-