org.jcon.data
Class RoundRobinIterator

java.lang.Object
  extended by org.jcon.data.RoundRobinIterator
All Implemented Interfaces:
java.util.Iterator

public class RoundRobinIterator
extends java.lang.Object
implements java.util.Iterator

Loops around a vector in round-robin fashion.


Constructor Summary
RoundRobinIterator(java.util.ArrayList vector)
          Creates new RoundRobinIterator from a vector.
 
Method Summary
 java.util.ArrayList getArrayList()
          The vector being robined 'round.
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 void setArrayList(java.util.ArrayList newArrayList)
          The vector being robined 'round.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundRobinIterator

public RoundRobinIterator(java.util.ArrayList vector)
Creates new RoundRobinIterator from a vector.

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

getArrayList

public java.util.ArrayList getArrayList()
The vector being robined 'round.


setArrayList

public void setArrayList(java.util.ArrayList newArrayList)
The vector being robined 'round.