java.lang.Object | +--org.apache.commons.collections.iterators.ListIteratorWrapperAll Implemented Interfaces:
ListIteratorWrapper(Iterator iterator) Constructs a new ListIteratorWrapper that will wrap the given iterator. |
void | add(Object o) Throws UnsupportedOperationException. |
boolean | hasNext() Returns true if there are more elements in the iterator. |
boolean | Returns true if there are previous elements in the iterator. |
Object | next() Returns the next element from the iterator. |
int | Returns in the index of the next element. |
Object | previous() Returns the the previous element. |
int | Returns the index of the previous element. |
void | remove() Throws UnsupportedOperationException. |
void | set(Object o) Throws UnsupportedOperationException. |
public ListIteratorWrapper(Iterator iterator)
ListIteratorWrapper
that will wrap
the given iterator.
- if the iterator is nullpublic void add(Object o)
- alwayspublic boolean hasNext()
public boolean hasPrevious()
public Object next()
- if there are no more elementspublic int nextIndex()
public Object previous()
- if there are no previous elementspublic int previousIndex()
public void remove()
- alwayspublic void set(Object o)
- always