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

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

public class EnumerationSequenceGenerator
extends java.lang.Object
implements SequenceGenerator

Project:
TestDataLoader
Filename:
EnumerationSequenceGenerator.java
Creation Date:
25 May 2008
A sequence generator that serves up a list of values in the order specified.

Author:
Bryan Ray

Constructor Summary
EnumerationSequenceGenerator(java.util.List<java.lang.String> enumeration)
           
 
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

EnumerationSequenceGenerator

public EnumerationSequenceGenerator(java.util.List<java.lang.String> enumeration)
Parameters:
enumeration - A list of values to use as the enumeration.
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.