I - Input iterator typeT - Output iterator typepublic abstract class IteratorTransform<I,T> extends Object implements Iterator<T>
| Modifier | Constructor and Description |
|---|---|
protected |
IteratorTransform(Iterator<I> inputIterator)
Create a new instance that uses the given iterator as the input source.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
acceptInput(I input)
Accept a value from the input iterator.
|
protected void |
addAllOutput(Collection<T> values)
Add multiple values to the output queue.
|
protected void |
addOutput(T value)
Add a value to the output queue.
|
boolean |
hasNext() |
T |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removeprotected void addOutput(T value)
value - value to add to the output queueprotected void addAllOutput(Collection<T> values)
values - values to add to the output queueprotected abstract void acceptInput(I input)
input - value from the input iteratorCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.