org.globus.cog.karajan.util
Class RangeIterator

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

public class RangeIterator
extends Object
implements KarajanIterator


Constructor Summary
RangeIterator(int start, int end)
           
RangeIterator(int start, int end, int step)
           
 
Method Summary
 int count()
           
 int current()
           
 boolean hasNext()
           
 boolean isClosed()
           
 Object next()
           
 Object peek()
           
 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,
                     int step)

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()
Specified by:
next in interface Iterator

peek

public Object peek()
Specified by:
peek in interface KarajanIterator

isClosed

public boolean isClosed()

toString

public String toString()
Overrides:
toString in class Object