sharin.unlinq
Class QueuedIterator<T,E,R>
java.lang.Object
sharin.unlinq.QueuedIterator<T,E,R>
- All Implemented Interfaces:
- Iterator<R>
public abstract class QueuedIterator<T,E,R>
- extends Object
- implements Iterator<R>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueuedIterator
public QueuedIterator(Iterator<T> iterator)
addElement
protected abstract void addElement(Queue<E> queue,
T t)
toResult
protected abstract R toResult(E e)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<R>
next
public R next()
- Specified by:
next
in interface Iterator<R>
remove
public void remove()
- Specified by:
remove
in interface Iterator<R>
Copyright © 2009 SHU. All Rights Reserved.