T - the element typepublic class QueuedIterator<T> extends Object implements Iterator<T>
| Constructor and Description |
|---|
QueuedIterator(int capacity)
QueuedIterator constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
done()
Mark this iterator as done.
|
boolean |
hasNext() |
T |
next() |
void |
put(T elem)
Put the next value into this iterator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic QueuedIterator(int capacity)
capacity - the maximum amount of queued elements before it starts blockingpublic void put(T elem)
elem - the valuepublic void done()
Copyright © 2017. All rights reserved.