edu.cmu.minorthird.util
Class AbstractLooper<T>

java.lang.Object
  extended by edu.cmu.minorthird.util.AbstractLooper<T>
All Implemented Interfaces:
java.util.Iterator<T>

public class AbstractLooper<T>
extends java.lang.Object
implements java.util.Iterator<T>


Constructor Summary
AbstractLooper(java.util.Collection<T> c)
           
AbstractLooper(java.util.Iterator<T> i)
           
 
Method Summary
 int estimatedSize()
          Estimated number of items to be iterated over, or -1 if the number is unknown.
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLooper

public AbstractLooper(java.util.Iterator<T> i)

AbstractLooper

public AbstractLooper(java.util.Collection<T> c)
Method Detail

remove

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

hasNext

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

next

public T next()
Specified by:
next in interface java.util.Iterator<T>

estimatedSize

public int estimatedSize()
Estimated number of items to be iterated over, or -1 if the number is unknown.