public class DoubleListIteratorListIterator extends Object implements ListIterator
DoubleListIterator to the
ListIterator interface.
This implementation delegates most methods
to the provided DoubleListIterator
implementation in the "obvious" way.| Constructor and Description |
|---|
DoubleListIteratorListIterator(DoubleListIterator iterator)
Creates an
ListIterator wrapping
the specified DoubleListIterator. |
| Modifier and Type | Method and Description |
|---|---|
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(DoubleListIterator iterator)
Create a
ListIterator wrapping
the specified DoubleListIterator. |
public DoubleListIteratorListIterator(DoubleListIterator iterator)
ListIterator wrapping
the specified DoubleListIterator.public static ListIterator wrap(DoubleListIterator iterator)
ListIterator wrapping
the specified DoubleListIterator. When
the given iterator is null,
returns null.iterator - the (possibly null)
DoubleListIterator to wrapListIterator wrapping the given
iterator, or null when iterator is
null.public int nextIndex()
nextIndex in interface ListIteratorpublic int previousIndex()
previousIndex in interface ListIteratorpublic boolean hasNext()
hasNext in interface IteratorhasNext in interface ListIteratorpublic boolean hasPrevious()
hasPrevious in interface ListIteratorpublic Object next()
next in interface Iteratornext in interface ListIteratorpublic Object previous()
previous in interface ListIteratorpublic void add(Object obj)
add in interface ListIteratorpublic void set(Object obj)
set in interface ListIteratorpublic void remove()
remove in interface Iteratorremove in interface ListIteratorCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.