org.apache.commons.collections.primitives.adapters
public class DoubleListIteratorListIterator extends java.lang.Object implements java.util.ListIterator
DoubleListIterator
to the
ListIterator
interface.
This implementation delegates most methods
to the provided DoubleListIterator
implementation in the "obvious" way.Modifier and Type | Field and Description |
---|---|
private DoubleListIterator |
_iterator |
Constructor and Description |
---|
DoubleListIteratorListIterator(DoubleListIterator iterator)
Creates an
ListIterator wrapping
the specified DoubleListIterator . |
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(DoubleListIterator iterator)
Create a
ListIterator wrapping
the specified DoubleListIterator . |
private DoubleListIterator _iterator
public DoubleListIteratorListIterator(DoubleListIterator iterator)
ListIterator
wrapping
the specified DoubleListIterator
.public static java.util.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 java.util.ListIterator
public int previousIndex()
previousIndex
in interface java.util.ListIterator
public boolean hasNext()
hasNext
in interface java.util.Iterator
hasNext
in interface java.util.ListIterator
public boolean hasPrevious()
hasPrevious
in interface java.util.ListIterator
public java.lang.Object next()
next
in interface java.util.Iterator
next
in interface java.util.ListIterator
public java.lang.Object previous()
previous
in interface java.util.ListIterator
public void add(java.lang.Object obj)
add
in interface java.util.ListIterator
public void set(java.lang.Object obj)
set
in interface java.util.ListIterator
public void remove()
remove
in interface java.util.Iterator
remove
in interface java.util.ListIterator
Copyright (c) 2002-2003 - Apache Software Foundation