org.apache.commons.collections.primitives.adapters
Class DoubleListIteratorListIterator
java.lang.Object
org.apache.commons.collections.primitives.adapters.DoubleListIteratorListIterator
- All Implemented Interfaces:
- Iterator, ListIterator
public class DoubleListIteratorListIterator
- extends Object
- implements ListIterator
Adapts an DoubleListIterator
to the
ListIterator
interface.
This implementation delegates most methods
to the provided DoubleListIterator
implementation in the "obvious" way.
- Since:
- Commons Primitives 1.0
- Version:
- $Revision: 480462 $ $Date: 2006-11-29 09:15:00 +0100 (Wed, 29 Nov 2006) $
- Author:
- Rodney Waldhoff
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoubleListIteratorListIterator
public DoubleListIteratorListIterator(DoubleListIterator iterator)
- Creates an
ListIterator
wrapping
the specified DoubleListIterator
.
- See Also:
wrap(org.apache.commons.collections.primitives.DoubleListIterator)
wrap
public static ListIterator wrap(DoubleListIterator iterator)
- Create a
ListIterator
wrapping
the specified DoubleListIterator
. When
the given iterator is null
,
returns null
.
- Parameters:
iterator
- the (possibly null
)
DoubleListIterator
to wrap
- Returns:
- a
ListIterator
wrapping the given
iterator, or null
when iterator is
null
.
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interface ListIterator
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interface ListIterator
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
- Specified by:
hasNext
in interface ListIterator
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interface ListIterator
next
public Object next()
- Specified by:
next
in interface Iterator
- Specified by:
next
in interface ListIterator
previous
public Object previous()
- Specified by:
previous
in interface ListIterator
add
public void add(Object obj)
- Specified by:
add
in interface ListIterator
set
public void set(Object obj)
- Specified by:
set
in interface ListIterator
remove
public void remove()
- Specified by:
remove
in interface Iterator
- Specified by:
remove
in interface ListIterator
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.