|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.collections.iterators.ListIteratorWrapper
As the wrapped Iterator is traversed, ListIteratorWrapper builds a LinkedList of its values, permitting all required operations of ListIterator.
Constructor Summary | |
ListIteratorWrapper(Iterator iterator)
Constructs a new ListIteratorWrapper that will wrap
the given iterator. |
Method Summary | |
void |
add(Object o)
Throws UnsupportedOperationException . |
boolean |
hasNext()
Returns true if there are more elements in the iterator. |
boolean |
hasPrevious()
Returns true if there are previous elements in the iterator. |
Object |
next()
Returns the next element from the iterator. |
int |
nextIndex()
Returns in the index of the next element. |
Object |
previous()
Returns the the previous element. |
int |
previousIndex()
Returns the index of the previous element. |
void |
remove()
Throws UnsupportedOperationException . |
void |
set(Object o)
Throws UnsupportedOperationException . |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ListIteratorWrapper(Iterator iterator)
ListIteratorWrapper
that will wrap
the given iterator.iterator
- the iterator to wrapMethod Detail |
public void add(Object o) throws UnsupportedOperationException
UnsupportedOperationException
.o
- ignoredpublic boolean hasNext()
public boolean hasPrevious()
public Object next() throws NoSuchElementException
public int nextIndex()
public Object previous() throws NoSuchElementException
public int previousIndex()
public void remove() throws UnsupportedOperationException
UnsupportedOperationException
.public void set(Object o) throws UnsupportedOperationException
UnsupportedOperationException
.o
- ignored
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |