public abstract class AdaptedIterator<T,U> extends Object implements Iterator<U>
Iterator
that adapts the values returned from another iterator.
This class should be really in Iterators
but for historical reasons it's here.
Iterators
Modifier | Constructor and Description |
---|---|
protected |
AdaptedIterator(Iterable<? extends T> core) |
protected |
AdaptedIterator(Iterator<? extends T> core) |
Modifier and Type | Method and Description |
---|---|
protected abstract U |
adapt(T item) |
boolean |
hasNext() |
U |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
Copyright © 2004–2019. All rights reserved.