org.javasteps.engine
Class StepsList

java.lang.Object
  extended by org.javasteps.engine.StepsList

public class StepsList
extends Object

The StepsList class is used as a special linked list for steps. To iterate through the steps, use a StepsIterator.

Version:
1.1
Author:
Ran Kornfeld

Constructor Summary
StepsList()
           
 
Method Summary
 void add(Step step)
          Adds a new step to the list.
 void addAll(Collection<Step> steps)
          Adds a collection of steps
 void addAll(StepsList steps)
          Adds a collection of steps
 StepsIterator getIterator()
          Gets a step iterator
 int getSize()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StepsList

public StepsList()
Method Detail

add

public void add(Step step)
Adds a new step to the list. If a step with the same id is already contained in the list, nothing happens.

Parameters:
step - The step to add

addAll

public void addAll(Collection<Step> steps)
Adds a collection of steps

Parameters:
steps - The steps to add

addAll

public void addAll(StepsList steps)
Adds a collection of steps

Parameters:
steps - The steps to add

getIterator

public StepsIterator getIterator()
Gets a step iterator

Returns:
A StepIterator object

getSize

public int getSize()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()