org.apache.commons.collections.iterators
public class ListIteratorWrapper extends Object implements ListIterator
Since: Commons Collections 2.1
Version: $Revision: 1.7 $ $Date: 2004/02/18 00:59:50 $
Constructor Summary | |
---|---|
ListIteratorWrapper(Iterator iterator)
Constructs a new ListIteratorWrapper that will wrap
the given iterator.
|
Method Summary | |
---|---|
void | add(Object o)
Throws {@link 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 {@link UnsupportedOperationException}.
|
void | set(Object o)
Throws {@link UnsupportedOperationException}.
|
ListIteratorWrapper
that will wrap
the given iterator.
Parameters: iterator the iterator to wrap
Throws: NullPointerException if the iterator is null
Parameters: o ignored
Throws: UnsupportedOperationException always
Returns: true if there are more elements
Returns: true if there are previous elements
Returns: the next element from the iterator
Throws: NoSuchElementException if there are no more elements
Returns: the index of the next element
Returns: the previous element
Throws: NoSuchElementException if there are no previous elements
Returns: the index of the previous element
Throws: UnsupportedOperationException always
Parameters: o ignored
Throws: UnsupportedOperationException always