I - the "input" type; the type of the wrapped iteratorO - the "output" type; the type of elements in this iteratorpublic static class TransformingListIterator.ReadOnly<I,O> extends TransformingListIterator<I,O>
remove(),
TransformingListIterator.add(Object), and TransformingListIterator.set(Object)) throw UnsupportedOperationException.TransformingListIterator.Bidi<I,O>, TransformingListIterator.ReadOnly<I,O>| Constructor and Description |
|---|
ReadOnly(ListIterator<I> iterator,
Function<? super I,? extends O> function)
Constructs a new read-only transforming list iterator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
remove() |
add, hasPrevious, internal, nextIndex, previous, previousIndex, setapply, hasNext, nextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasNext, nextforEachRemainingpublic ReadOnly(ListIterator<I> iterator, Function<? super I,? extends O> function)
iterator - the wrapped iteratorfunction - the function used to transform elementspublic void remove()
remove in interface Iterator<O>remove in interface ListIterator<O>remove in class TransformingIterator<I,O>