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

java.lang.Object
  extended by net.java.quickcheck.generator.support.AbstractTransformerGenerator<List<T>,T[]>
      extended by net.java.quickcheck.generator.support.ArrayGenerator<T>
All Implemented Interfaces:
Generator<T[]>

public class ArrayGenerator<T>
extends AbstractTransformerGenerator<List<T>,T[]>


Field Summary
static int MAX_SIZE
           
static int MIN_SIZE
           
 
Constructor Summary
ArrayGenerator(Generator<? extends T> content, Class<T> type)
           
ArrayGenerator(Generator<? extends T> content, Generator<Integer> size, Class<T> type)
           
 
Method Summary
protected  T[] transform(Generator<List<T>> inputGenerator)
           
 
Methods inherited from class net.java.quickcheck.generator.support.AbstractTransformerGenerator
next
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_SIZE

public static final int MAX_SIZE
See Also:
Constant Field Values

MIN_SIZE

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

ArrayGenerator

public ArrayGenerator(Generator<? extends T> content,
                      Class<T> type)

ArrayGenerator

public ArrayGenerator(Generator<? extends T> content,
                      Generator<Integer> size,
                      Class<T> type)
Method Detail

transform

protected T[] transform(Generator<List<T>> inputGenerator)
Specified by:
transform in class AbstractTransformerGenerator<List<T>,T[]>


Copyright © 2011. All Rights Reserved.