edu.jhu.htm.core
Class HTMrangeIterator

java.lang.Object
  |
  +--edu.jhu.htm.core.HTMrangeIterator
All Implemented Interfaces:
java.util.Iterator

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

Simple iterator to return all IDs from a htm Range. Be warned this uses the badly implemented Iterator of HTMrange and calls reset when you start it up.

  Current Version
  ===============
  ID:	$Id: HTMrangeIterator.java,v 1.3 2003/02/19 16:49:46 womullan Exp $
  Revision: 	$Revision: 1.3 $
  Date/time:	$Date: 2003/02/19 16:49:46 $
 

Version:
$Revision: 1.3 $
Author:
wil

Field Summary
protected  long[] currange
           
protected  java.lang.Object next
           
protected  long nextval
           
protected  HTMrange range
           
protected  boolean symbolic
           
 
Constructor Summary
HTMrangeIterator(HTMrange range, boolean symbolic)
           
 
Method Summary
protected  void getNext()
           
 boolean hasNext()
           
 java.lang.Object next()
           
 java.lang.Long nextAsLong()
           
 java.lang.String nextAsString()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

range

protected HTMrange range

symbolic

protected boolean symbolic

next

protected java.lang.Object next

currange

protected long[] currange

nextval

protected long nextval
Constructor Detail

HTMrangeIterator

public HTMrangeIterator(HTMrange range,
                        boolean symbolic)
                 throws HTMException
Method Detail

getNext

protected void getNext()
                throws HTMException
HTMException

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

nextAsString

public java.lang.String nextAsString()

nextAsLong

public java.lang.Long nextAsLong()

remove

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