dsto.dfc.collections
Class NumberIterator

java.lang.Object
  extended by dsto.dfc.collections.NumberIterator
All Implemented Interfaces:
Iterator

public class NumberIterator
extends Object
implements Iterator

Iterator that scans though a range of numbers.


Constructor Summary
NumberIterator(int lower, int upper)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberIterator

public NumberIterator(int lower,
                      int upper)
Method Detail

hasNext

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

next

public Object next()
Specified by:
next in interface Iterator

remove

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


Copyright © 2008 Commonwealth of Australia