public class QueuedSortedIterator<T>
extends com.google.common.collect.UnmodifiableIterator<T>
next()
function in the correct order. Elements can be added in any order and may even be less than the
elements that are already returned by the iterator though that will make the overall iteration unsorted.Constructor and Description |
---|
QueuedSortedIterator(com.google.common.collect.PeekingIterator<T> theIt,
Comparator<T> theComparator) |
QueuedSortedIterator(com.google.common.collect.PeekingIterator<T> theIt,
PriorityQueue<T> theQueue) |
Modifier and Type | Method and Description |
---|---|
void |
add(T theElement) |
boolean |
hasNext() |
T |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public QueuedSortedIterator(com.google.common.collect.PeekingIterator<T> theIt, Comparator<T> theComparator)
public QueuedSortedIterator(com.google.common.collect.PeekingIterator<T> theIt, PriorityQueue<T> theQueue)
Copyright © 2010-2016 Stardog Union. All Rights Reserved.