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

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

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


Field Summary
static int MAX_SIZE
           
static int MAX_TRIES
           
 
Constructor Summary
SetGenerator(Generator<? extends T> content)
           
SetGenerator(Generator<? extends T> content, Generator<Integer> size, int tries)
           
SetGenerator(Generator<? extends T> content, int tries)
           
 
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
 

Field Detail

MAX_SIZE

public static final int MAX_SIZE
See Also:
Constant Field Values

MAX_TRIES

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

SetGenerator

public SetGenerator(Generator<? extends T> content)

SetGenerator

public SetGenerator(Generator<? extends T> content,
                    int tries)

SetGenerator

public SetGenerator(Generator<? extends T> content,
                    Generator<Integer> size,
                    int tries)
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.