T - the type of elements returned by the delegated iteratorR - the type of elements returned by this iterator@ParametersAreNonnullByDefault public class DelegatedListIterator<T,R> extends Object implements ListIterator<R>
ListIterator that iterates over another.| Constructor and Description |
|---|
DelegatedListIterator(ListIterator<T> delegate,
Converter<T,R> converter)
Constructs a new
DelegatedIterator. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(R r) |
boolean |
hasNext() |
boolean |
hasPrevious() |
R |
next() |
int |
nextIndex() |
R |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(R r) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic DelegatedListIterator(ListIterator<T> delegate, Converter<T,R> converter)
DelegatedIterator.delegate - the delegated list iteratorconverter - the function used to map elements from the delegatepublic boolean hasNext()
public R next()
public boolean hasPrevious()
hasPrevious in interface ListIterator<R>public R previous()
previous in interface ListIterator<R>public int nextIndex()
nextIndex in interface ListIterator<R>public int previousIndex()
previousIndex in interface ListIterator<R>public void remove()
public void set(R r)
set in interface ListIterator<R>public void add(R r)
add in interface ListIterator<R>Copyright © 2017–2019 Atlanmod. All rights reserved.