net.java.quickcheck.generator.support
Class StringGenerator

java.lang.Object
  extended by net.java.quickcheck.generator.support.StringGenerator
All Implemented Interfaces:
ExtendibleGenerator<Character,String>, Generator<String>

public class StringGenerator
extends Object
implements ExtendibleGenerator<Character,String>


Field Summary
static int MAX_LENGTH
           
static int MIN_LENGTH
           
 
Constructor Summary
StringGenerator()
           
StringGenerator(char first, char last)
           
StringGenerator(Generator<Character> characters)
           
StringGenerator(Generator<Integer> length, Generator<Character> characters)
           
 
Method Summary
 ExtendibleGenerator<Character,String> add(Generator<Character> characterGenerator)
          Add a new generator.
 String 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

MIN_LENGTH

public static final int MIN_LENGTH
See Also:
Constant Field Values

MAX_LENGTH

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

StringGenerator

public StringGenerator()

StringGenerator

public StringGenerator(char first,
                       char last)

StringGenerator

public StringGenerator(Generator<Character> characters)

StringGenerator

public StringGenerator(Generator<Integer> length,
                       Generator<Character> characters)
Method Detail

next

public String next()
Description copied from interface: Generator
Generates the next instance.

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

add

public ExtendibleGenerator<Character,String> add(Generator<Character> characterGenerator)
Description copied from interface: ExtendibleGenerator
Add a new generator.

Specified by:
add in interface ExtendibleGenerator<Character,String>
Returns:
this generator instance


Copyright © 2011. All Rights Reserved.