uk.org.bryanray.testtoys.generator.sequencegenerators
Class StringSequenceGenerator

java.lang.Object
  extended by uk.org.bryanray.testtoys.generator.sequencegenerators.StringSequenceGenerator
All Implemented Interfaces:
SequenceGenerator

public class StringSequenceGenerator
extends java.lang.Object
implements SequenceGenerator

Project:
TestDataLoader
Filename:
StringSequenceGenerator.java
Creation Date:
31 May 2008

Author:
Bryan Ray

Constructor Summary
StringSequenceGenerator(java.util.List<java.lang.String> args)
           
 
Method Summary
 void next()
          Moves the sequence on one value.
 java.lang.String value()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringSequenceGenerator

public StringSequenceGenerator(java.util.List<java.lang.String> args)
Parameters:
args - A list of two values:
  1. A start value.
  2. An end value.
Method Detail

next

public void next()
Moves the sequence on one value.

Specified by:
next in interface SequenceGenerator

value

public java.lang.String value()

Specified by:
value in interface SequenceGenerator
Returns:
The current sequence value. This method should be ready to call immediately after initialisation of the instance object.


Copyright © 2008. All Rights Reserved.