net.java.quickcheck.generator.support
Class ListGenerator<T>
java.lang.Object
net.java.quickcheck.generator.support.ListGenerator<T>
- All Implemented Interfaces:
- Generator<List<T>>
public class ListGenerator<T>
- extends Object
- implements Generator<List<T>>
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 |
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
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)
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.