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

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

public class SubsetGenerator<T>
extends Object
implements Generator<Set<T>>


Constructor Summary
SubsetGenerator(Set<T> superset)
           
SubsetGenerator(Set<T> superset, Generator<Integer> size)
           
 
Method Summary
 Set<T> next()
          Generates the next instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubsetGenerator

public SubsetGenerator(Set<T> superset,
                       Generator<Integer> size)

SubsetGenerator

public SubsetGenerator(Set<T> superset)
Method Detail

next

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

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


Copyright © 2011. All Rights Reserved.