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

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

public class ExcludingGenerator<T>
extends VetoableGenerator<T>


Field Summary
 
Fields inherited from class net.java.quickcheck.generator.support.VetoableGenerator
DEFAULT_MAX_TRIES, MIN_TRIES
 
Constructor Summary
ExcludingGenerator(Generator<T> generator, Collection<T> excluded, int tries)
           
 
Method Summary
protected  boolean tryValue(T value)
           
 
Methods inherited from class net.java.quickcheck.generator.support.VetoableGenerator
next
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcludingGenerator

public ExcludingGenerator(Generator<T> generator,
                          Collection<T> excluded,
                          int tries)
Method Detail

tryValue

protected boolean tryValue(T value)
Specified by:
tryValue in class VetoableGenerator<T>
Returns:
true to accept the current value.


Copyright © 2011. All Rights Reserved.