public class ShortListIteratorListIterator
extends java.lang.Object
implements java.util.ListIterator
ShortListIterator to the
ListIterator interface.
This implementation delegates most methods
to the provided ShortListIterator
implementation in the "obvious" way.| Modifier and Type | Field and Description |
|---|---|
private ShortListIterator |
_iterator |
| Constructor and Description |
|---|
ShortListIteratorListIterator(ShortListIterator iterator)
Creates an
ListIterator wrapping
the specified ShortListIterator. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.Object obj) |
boolean |
hasNext() |
boolean |
hasPrevious() |
java.lang.Object |
next() |
int |
nextIndex() |
java.lang.Object |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(java.lang.Object obj) |
static java.util.ListIterator |
wrap(ShortListIterator iterator)
Create a
ListIterator wrapping
the specified ShortListIterator. |
private ShortListIterator _iterator
public ShortListIteratorListIterator(ShortListIterator iterator)
ListIterator wrapping
the specified ShortListIterator.public static java.util.ListIterator wrap(ShortListIterator iterator)
ListIterator wrapping
the specified ShortListIterator. When
the given iterator is null,
returns null.iterator - the (possibly null)
ShortListIterator to wrapListIterator wrapping the given
iterator, or null when iterator is
null.public int nextIndex()
nextIndex in interface java.util.ListIteratorpublic int previousIndex()
previousIndex in interface java.util.ListIteratorpublic boolean hasNext()
hasNext in interface java.util.IteratorhasNext in interface java.util.ListIteratorpublic boolean hasPrevious()
hasPrevious in interface java.util.ListIteratorpublic java.lang.Object next()
next in interface java.util.Iteratornext in interface java.util.ListIteratorpublic java.lang.Object previous()
previous in interface java.util.ListIteratorpublic void add(java.lang.Object obj)
add in interface java.util.ListIteratorpublic void set(java.lang.Object obj)
set in interface java.util.ListIteratorpublic void remove()
remove in interface java.util.Iteratorremove in interface java.util.ListIteratorCopyright (c) 2002-2003 - Apache Software Foundation