|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.molae.pipe.basic.ObjectProxy<ListIterator<S>>
net.sf.molae.pipe.trafo.TransformListIterator<S,E>
public final class TransformListIterator<S,E>
Transforms each element of a list iterator.
TransformedList| Constructor Summary | |
|---|---|
TransformListIterator(ListIterator<S> base,
TwoWayTransformer<S,E> transformer)
Constructs a TransformListIterator object. |
|
| Method Summary | |
|---|---|
void |
add(E o)
|
ListIterator<S> |
getListIterator()
Deprecated. leftover from org.apache.commons.collections.iterators.ProxyListIterator |
boolean |
hasNext()
|
boolean |
hasPrevious()
|
E |
next()
Returns the next element in the interation. |
int |
nextIndex()
|
E |
previous()
Returns the previous element in the list. |
int |
previousIndex()
|
void |
remove()
|
void |
set(E o)
|
| Methods inherited from class net.sf.molae.pipe.basic.ObjectProxy |
|---|
assertNotNull, equals, getBase, hashCode, toString, toVerboseString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TransformListIterator(ListIterator<S> base,
TwoWayTransformer<S,E> transformer)
base - the underlying ListIteratortransformer - the underlying transformer
NullPointerException - if any of the specified objects is
null.| Method Detail |
|---|
public ListIterator<S> getListIterator()
org.apache.commons.collections.iterators.ProxyListIterator
public boolean hasNext()
hasNext in interface Iterator<E>hasNext in interface ListIterator<E>public E next()
next in interface Iterator<E>next in interface ListIterator<E>NoSuchElementException - iteration has no more elements.public boolean hasPrevious()
hasPrevious in interface ListIterator<E>public E previous()
previous in interface ListIterator<E>NoSuchElementException - if the iteration has no previous
element.public int nextIndex()
nextIndex in interface ListIterator<E>public int previousIndex()
previousIndex in interface ListIterator<E>public void remove()
remove in interface Iterator<E>remove in interface ListIterator<E>public void set(E o)
set in interface ListIterator<E>UnsupportedOperationException - depending on the base iterator
and transformer
ClassCastException - depending on the base iterator
and transformer
IllegalArgumentException - depending on the base iterator
and transformer
IllegalStateException - if neither next nor
previous have been called, or remove or
add have been called after the last call to
next or previous.public void add(E o)
add in interface ListIterator<E>UnsupportedOperationException - depending on the base iterator
and transformer
ClassCastException - depending on the base iterator
and transformer
IllegalArgumentException - depending on the base iterator
and transformer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||