org.apache.commons.collections.primitives.adapters

Class ListIteratorIntListIterator

public class ListIteratorIntListIterator extends Object implements IntListIterator

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

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

Since: Commons Primitives 0.1

Version: $Revision: 1.2 $ $Date: 2003/10/14 20:04:18 $

Author: Rodney Waldhoff

Field Summary
ListIterator_iterator
Constructor Summary
ListIteratorIntListIterator(ListIterator iterator)
Creates an IntListIterator wrapping the specified ListIterator ListIterator.
Method Summary
voidadd(int element)
booleanhasNext()
booleanhasPrevious()
intnext()
intnextIndex()
intprevious()
intpreviousIndex()
voidremove()
voidset(int element)
static IntListIteratorwrap(ListIterator iterator)
Create an IntListIterator wrapping the specified ListIterator ListIterator.

Field Detail

_iterator

private ListIterator _iterator

Constructor Detail

ListIteratorIntListIterator

public ListIteratorIntListIterator(ListIterator iterator)
Creates an IntListIterator wrapping the specified ListIterator ListIterator.

See Also: ListIteratorIntListIterator

Method Detail

add

public void add(int element)

hasNext

public boolean hasNext()

hasPrevious

public boolean hasPrevious()

next

public int next()

nextIndex

public int nextIndex()

previous

public int previous()

previousIndex

public int previousIndex()

remove

public void remove()

set

public void set(int element)

wrap

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

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

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

Copyright (c) 2002-2003 - Apache Software Foundation