org.apache.commons.collections.primitives.adapters

Class ListIteratorDoubleListIterator

public class ListIteratorDoubleListIterator extends Object implements DoubleListIterator

Adapts a Number-valued ListIterator ListIterator to the DoubleListIterator interface.

This implementation delegates most methods to the provided DoubleListIterator implementation in the "obvious" way.

Since: Commons Primitives 1.0

Version: $Revision: 1.3 $ $Date: 2003/10/16 20:49:38 $

Author: Rodney Waldhoff

Field Summary
ListIterator_iterator
Constructor Summary
ListIteratorDoubleListIterator(ListIterator iterator)
Creates an DoubleListIterator wrapping the specified ListIterator ListIterator.
Method Summary
voidadd(double element)
booleanhasNext()
booleanhasPrevious()
doublenext()
intnextIndex()
doubleprevious()
intpreviousIndex()
voidremove()
voidset(double element)
static DoubleListIteratorwrap(ListIterator iterator)
Create an DoubleListIterator wrapping the specified ListIterator ListIterator.

Field Detail

_iterator

private ListIterator _iterator

Constructor Detail

ListIteratorDoubleListIterator

public ListIteratorDoubleListIterator(ListIterator iterator)
Creates an DoubleListIterator wrapping the specified ListIterator ListIterator.

See Also: ListIteratorDoubleListIterator

Method Detail

add

public void add(double element)

hasNext

public boolean hasNext()

hasPrevious

public boolean hasPrevious()

next

public double next()

nextIndex

public int nextIndex()

previous

public double previous()

previousIndex

public int previousIndex()

remove

public void remove()

set

public void set(double element)

wrap

public static DoubleListIterator wrap(ListIterator iterator)
Create an DoubleListIterator wrapping the specified ListIterator ListIterator. When the given iterator is null, returns null.

Parameters: iterator the (possibly null) ListIterator ListIterator to wrap

Returns: an DoubleListIterator wrapping the given iterator, or null when iterator is null.

Copyright (c) 2002-2003 - Apache Software Foundation