org.apache.commons.collections.primitives.adapters

Class CharListIteratorListIterator

public class CharListIteratorListIterator extends Object implements ListIterator

Adapts an CharListIterator to the ListIterator ListIterator interface.

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

Since: Commons Primitives 1.0

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

Author: Rodney Waldhoff

Field Summary
CharListIterator_iterator
Constructor Summary
CharListIteratorListIterator(CharListIterator iterator)
Creates an ListIterator ListIterator wrapping the specified CharListIterator.
Method Summary
voidadd(Object obj)
booleanhasNext()
booleanhasPrevious()
Objectnext()
intnextIndex()
Objectprevious()
intpreviousIndex()
voidremove()
voidset(Object obj)
static ListIteratorwrap(CharListIterator iterator)
Create a ListIterator ListIterator wrapping the specified CharListIterator.

Field Detail

_iterator

private CharListIterator _iterator

Constructor Detail

CharListIteratorListIterator

public CharListIteratorListIterator(CharListIterator iterator)
Creates an ListIterator ListIterator wrapping the specified CharListIterator.

See Also: CharListIteratorListIterator

Method Detail

add

public void add(Object obj)

hasNext

public boolean hasNext()

hasPrevious

public boolean hasPrevious()

next

public Object next()

nextIndex

public int nextIndex()

previous

public Object previous()

previousIndex

public int previousIndex()

remove

public void remove()

set

public void set(Object obj)

wrap

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

Parameters: iterator the (possibly null) CharListIterator to wrap

Returns: a ListIterator ListIterator wrapping the given iterator, or null when iterator is null.

Copyright (c) 2002-2003 - Apache Software Foundation