javaslam.util
Class PriorityQueue.QueueItemIterator

java.lang.Object
  |
  +--javaslam.util.PriorityQueue.QueueItemIterator
All Implemented Interfaces:
Iterator
Enclosing class:
PriorityQueue

protected class PriorityQueue.QueueItemIterator
extends Object
implements Iterator

An iterator over queue items. This wraps an iterator over elements and gives access to their corresponding items.


Field Summary
protected  Iterator i
          The underlying iterator over elements.
 
Constructor Summary
PriorityQueue.QueueItemIterator(Iterator i)
          Constructor.
 
Method Summary
 boolean hasNext()
          Returns true if this iterator has more items.
 Object next()
          Returns the next item in this iteration.
 void remove()
          This operation is unsupported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i

protected Iterator i
The underlying iterator over elements.

Constructor Detail

PriorityQueue.QueueItemIterator

public PriorityQueue.QueueItemIterator(Iterator i)
Constructor.

Parameters:
i - an iterator over QueueElement objects.
Method Detail

hasNext

public boolean hasNext()
Returns true if this iterator has more items.

Specified by:
hasNext in interface Iterator

next

public Object next()
Returns the next item in this iteration.

Specified by:
next in interface Iterator

remove

public void remove()
This operation is unsupported.

Specified by:
remove in interface Iterator
Throws:
UnsupportedOperationException