All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sdsu.algorithms.data.StringGenerator

java.lang.Object
   |
   +----sdsu.algorithms.data.StringGenerator

public class StringGenerator
extends Object
implements ObjectGenerator
Generates a sequence of random strings. The characters in the string are random visible ascii characters. The length of the strings is also choosen at random between a min and max value.

Version:
1.0 19 June 1997
Author:
Roger Whitney (whitney@cs.sdsu.edu)
See Also:
ObjectGenerator, NumberGenerator

Constructor Index

 o StringGenerator(int)
Create an StringGenerator which a sequence of random strings.
 o StringGenerator(int, int)
Create an StringGenerator which a sequence of random strings.

Method Index

 o nextElement()
Returns next random string.

Constructors

 o StringGenerator
 public StringGenerator(int maxLength)
Create an StringGenerator which a sequence of random strings. The strings will be between 1 and maxLength characters in length.

 o StringGenerator
 public StringGenerator(int minLength,
                        int maxLength)
Create an StringGenerator which a sequence of random strings. The strings will be between minLength and maxLength characters in length.

Methods

 o nextElement
 public Object nextElement()
Returns next random string.


All Packages  Class Hierarchy  This Package  Previous  Next  Index