net.java.quickcheck.generator.support
Class EnsuredValuesGenerator<T>
java.lang.Object
net.java.quickcheck.generator.support.EnsuredValuesGenerator<T>
- All Implemented Interfaces:
- Generator<T>, StatefulGenerator<T>
public class EnsuredValuesGenerator<T>
- extends Object
- implements StatefulGenerator<T>
Method Summary |
T |
next()
Generates the next instance. |
void |
reset()
Resets the state of the generator to the state it had immediately after
construction. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnsuredValuesGenerator
public EnsuredValuesGenerator(Collection<T> values)
EnsuredValuesGenerator
public EnsuredValuesGenerator(Collection<T> ensured,
Generator<T> random)
next
public T next()
- Description copied from interface:
Generator
- Generates the next instance.
- Specified by:
next
in interface Generator<T>
- Returns:
- a newly created instance
reset
public void reset()
- Description copied from interface:
StatefulGenerator
- Resets the state of the generator to the state it had immediately after
construction.
Makes a heavy weight generator reusable.
- Specified by:
reset
in interface StatefulGenerator<T>
Copyright © 2011. All Rights Reserved.