org.globus.cog.karajan.util
Class RangeIterator

java.lang.Object
  extended byorg.globus.cog.karajan.util.RangeIterator
All Implemented Interfaces:
Iterator, KarajanIterator

public class RangeIterator
extends Object
implements KarajanIterator


Constructor Summary
RangeIterator(int start, int end)
           
 
Method Summary
 int count()
           
 int current()
           
 boolean hasNext()
           
 boolean isClosed()
           
 Object next()
           
 int remaining()
           
 void remove()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RangeIterator

public RangeIterator(int start,
                     int end)
Method Detail

count

public int count()
Specified by:
count in interface KarajanIterator

remaining

public int remaining()

current

public int current()
Specified by:
current in interface KarajanIterator

remove

public void remove()
Specified by:
remove in interface Iterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
            throws NoSuchElementException
Specified by:
next in interface Iterator
Throws:
NoSuchElementException

isClosed

public boolean isClosed()

toString

public String toString()