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, toSet
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
nextOptional
public To next()
NiceIterator
public boolean hasNext()
NiceIterator
public void remove()
NiceIterator
public void close()
NiceIterator
close
in interface ClosableIterator<To>
close
in class NiceIterator<To>
Licenced under the Apache License, Version 2.0