F - the type of elements in the underlying ListIteratorT - the type that the elements should be converted topublic static class ConverterCollections.ConverterListIterator<F,T> extends Object implements ListIterator<T>
| Modifier and Type | Field and Description |
|---|---|
protected Converter<T,F> |
m_convDown
The Converter from this ListIterator to the underlying
ListIterator.
|
protected Converter<F,T> |
m_convUp
The Converter from the underlying ListIterator to this
ListIterator.
|
protected ListIterator<F> |
m_iter
The underlying ListIterator.
|
| Constructor and Description |
|---|
ConverterListIterator(ListIterator<F> iter,
Converter<F,T> convUp,
Converter<T,F> convDown)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(T o) |
Converter<T,F> |
getConverterDown()
Return the Converter used to pass values down to the underlying
ListIterator.
|
Converter<F,T> |
getConverterUp()
Return the Converter used to view the underlying ListIterator's
values through.
|
ListIterator<F> |
getListIterator()
Return the underlying ListIterator.
|
boolean |
hasNext() |
boolean |
hasPrevious() |
T |
next() |
int |
nextIndex() |
T |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(T o) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected final ListIterator<F> m_iter
protected final Converter<F,T> m_convUp
public boolean hasNext()
public T next()
public boolean hasPrevious()
hasPrevious in interface ListIterator<T>public T previous()
previous in interface ListIterator<T>public int nextIndex()
nextIndex in interface ListIterator<T>public int previousIndex()
previousIndex in interface ListIterator<T>public void remove()
public void set(T o)
set in interface ListIterator<T>public void add(T o)
add in interface ListIterator<T>public ListIterator<F> getListIterator()
public Converter<F,T> getConverterUp()