net.java.quickcheck.generator.support
Class StringGenerator
java.lang.Object
net.java.quickcheck.generator.support.StringGenerator
- All Implemented Interfaces:
- ExtendibleGenerator<Character,String>, Generator<String>
public class StringGenerator
- extends Object
- implements ExtendibleGenerator<Character,String>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)
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.