net.java.quickcheck.generator.iterable
Class Iterables

java.lang.Object
  extended by net.java.quickcheck.generator.iterable.Iterables

public final class Iterables
extends Object


Method Summary
static
<T> Iterable<T>
toIterable(Generator<T> generator)
          Convert a generator into a iterable.
static
<T> Iterable<T>
toIterable(Generator<T> generator, int numberOfRuns)
          Convert a generator into a iterable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toIterable

public static <T> Iterable<T> toIterable(Generator<T> generator)
Convert a generator into a iterable.
The generator will be run QuickCheck.MAX_NUMBER_OF_RUNS times.


toIterable

public static <T> Iterable<T> toIterable(Generator<T> generator,
                                         int numberOfRuns)
Convert a generator into a iterable.

Parameters:
numberOfRuns - to execute the runner


Copyright © 2011. All Rights Reserved.