public class Map1Iterator<From,To> extends NiceIterator<To> implements ClosableIterator<To>
| Constructor and Description |
|---|
Map1Iterator(Function<From,To> map,
Iterator<From> base)
Construct a list of the converted.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
default close: don't need to do anything.
|
boolean |
hasNext()
default hasNext: no elements, return false.
|
To |
next()
default next: throw an exception.
|
void |
remove()
default remove: we have no elements, so we can't remove any.
|
andThen, andThen, asList, asSet, close, emptyIterator, filterDrop, filterKeep, mapWith, removeNext, toList, toSetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingnextOptionalpublic To next()
NiceIteratorpublic boolean hasNext()
NiceIteratorpublic void remove()
NiceIteratorpublic void close()
NiceIteratorclose in interface ClosableIterator<To>close in class NiceIterator<To>Licenced under the Apache License, Version 2.0