net.java.quickcheck.generator.support
Class ListGenerator<T>

java.lang.Object
  extended by net.java.quickcheck.generator.support.ListGenerator<T>
All Implemented Interfaces:
Generator<List<T>>

public class ListGenerator<T>
extends Object
implements Generator<List<T>>


Field Summary
static int MAX_SIZE
           
static int MIN_SIZE
           
 
Constructor Summary
ListGenerator(Generator<? extends T> content)
           
ListGenerator(Generator<? extends T> content, Generator<Integer> size)
           
ListGenerator(Generator<? extends T> content, int min, int max)
           
 
Method Summary
 List<T> next()
          Generates the next instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_SIZE

public static final int MIN_SIZE
See Also:
Constant Field Values

MAX_SIZE

public static final int MAX_SIZE
See Also:
Constant Field Values
Constructor Detail

ListGenerator

public ListGenerator(Generator<? extends T> content)

ListGenerator

public ListGenerator(Generator<? extends T> content,
                     int min,
                     int max)

ListGenerator

public ListGenerator(Generator<? extends T> content,
                     Generator<Integer> size)
Method Detail

next

public List<T> next()
Description copied from interface: Generator
Generates the next instance.

Specified by:
next in interface Generator<List<T>>
Returns:
a newly created instance


Copyright © 2011. All Rights Reserved.