healpix.tools
Class EnumIter

java.lang.Object
  extended byhealpix.tools.EnumIter
All Implemented Interfaces:
java.util.Iterator

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

Masqueard an Enumeration as an Iteration


Field Summary
protected  java.util.Enumeration dataIter
           
 
Constructor Summary
EnumIter(java.util.Enumeration e)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
          Take next data object and Return
 void remove()
          optional - needed to satisfy interface Iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataIter

protected java.util.Enumeration dataIter
Constructor Detail

EnumIter

public EnumIter(java.util.Enumeration e)
Method Detail

next

public java.lang.Object next()
Take next data object and Return

Specified by:
next in interface java.util.Iterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

remove

public void remove()
optional - needed to satisfy interface Iterator

Specified by:
remove in interface java.util.Iterator