T
- is the element type of the base iterator.F
- is the element type of this iterator.StreamIterator<T>
, Iterator<T>
public class ConvertingStreamIterator<T,F> extends AbstractStreamIterator<F>
Iterator
to convert the iterator
elements into a new type.Constructor | Description |
---|---|
ConvertingStreamIterator(Iterator<T> origin,
Function<T,F> converter) |
Modifier and Type | Method | Description |
---|---|---|
protected F |
findNext() |
This method looks for the next entry to be returned.
|
hasNext, next, peek
forEachRemaining, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
empty, of
protected F findNext()
AbstractStreamIterator
null
is returned.findNext
in class AbstractStreamIterator<F>
null
is returned in case no more
entries are available.Copyright © 2017–2018 PureSol Technologies. All rights reserved.