org.apache.commons.collections.primitives.adapters
public class ListIteratorShortListIterator extends Object implements ShortListIterator
ListIterator ListIterator
to the ShortListIterator
interface.
This implementation delegates most methods
to the provided ShortListIterator
implementation in the "obvious" way.
Since: Commons Primitives 1.0
Version: $Revision: 1.3 $ $Date: 2003/10/16 20:49:39 $
Field Summary | |
---|---|
ListIterator | _iterator |
Constructor Summary | |
---|---|
ListIteratorShortListIterator(ListIterator iterator)
Creates an ShortListIterator wrapping
the specified ListIterator ListIterator . |
Method Summary | |
---|---|
void | add(short element) |
boolean | hasNext() |
boolean | hasPrevious() |
short | next() |
int | nextIndex() |
short | previous() |
int | previousIndex() |
void | remove() |
void | set(short element) |
static ShortListIterator | wrap(ListIterator iterator)
Create an ShortListIterator wrapping
the specified ListIterator ListIterator . |
ShortListIterator
wrapping
the specified ListIterator ListIterator
.See Also: ListIteratorShortListIterator
ShortListIterator
wrapping
the specified ListIterator ListIterator
. When
the given iterator is null
,
returns null
.
Parameters: iterator the (possibly null
)
ListIterator ListIterator
to wrap
Returns: an ShortListIterator
wrapping the given
iterator, or null
when iterator is
null
.