org.apache.commons.collections.primitives.adapters
public class ShortListIteratorListIterator extends Object implements ListIterator
ShortListIterator
to the
ListIterator ListIterator
interface.
This implementation delegates most methods
to the provided ShortListIterator
implementation in the "obvious" way.
Since: Commons Collections 2.2
Version: $Revision: 1.1 $ $Date: 2003/10/13 22:46:48 $
Field Summary | |
---|---|
ShortListIterator | _iterator |
Constructor Summary | |
---|---|
ShortListIteratorListIterator(ShortListIterator iterator)
Creates an ListIterator ListIterator wrapping
the specified ShortListIterator . |
Method Summary | |
---|---|
void | add(Object obj) |
boolean | hasNext() |
boolean | hasPrevious() |
Object | next() |
int | nextIndex() |
Object | previous() |
int | previousIndex() |
void | remove() |
void | set(Object obj) |
static ListIterator | wrap(ShortListIterator iterator)
Create a ListIterator ListIterator wrapping
the specified ShortListIterator . |
ListIterator ListIterator
wrapping
the specified ShortListIterator
.See Also: ShortListIteratorListIterator
ListIterator ListIterator
wrapping
the specified ShortListIterator
. When
the given iterator is null
,
returns null
.
Parameters: iterator the (possibly null
)
ShortListIterator
to wrap
Returns: a ListIterator ListIterator
wrapping the given
iterator, or null
when iterator is
null
.