com.judoscript.util
Class RangeIterator

java.lang.Object
  extended by com.judoscript.util.RangeIterator
All Implemented Interfaces:
java.util.Iterator

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


Constructor Summary
RangeIterator(java.util.Enumeration en, int start, int end, int step, boolean upto)
           
RangeIterator(java.util.Iterator iter, int start, int end, int step, boolean upto)
           
 
Method Summary
static java.util.Iterator getIterator(java.lang.Object o, int start, int end, int step, boolean upto)
           
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeIterator

public RangeIterator(java.util.Enumeration en,
                     int start,
                     int end,
                     int step,
                     boolean upto)

RangeIterator

public RangeIterator(java.util.Iterator iter,
                     int start,
                     int end,
                     int step,
                     boolean upto)
Method Detail

getIterator

public static java.util.Iterator getIterator(java.lang.Object o,
                                             int start,
                                             int end,
                                             int step,
                                             boolean upto)
                                      throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

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