org.apache.commons.collections.primitives.adapters

Class ListIteratorByteListIterator

public class ListIteratorByteListIterator extends Object implements ByteListIterator

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

This implementation delegates most methods to the provided ByteListIterator 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
ListIteratorByteListIterator(ListIterator iterator)
Creates an ByteListIterator wrapping the specified ListIterator ListIterator.
Method Summary
voidadd(byte element)
booleanhasNext()
booleanhasPrevious()
bytenext()
intnextIndex()
byteprevious()
intpreviousIndex()
voidremove()
voidset(byte element)
static ByteListIteratorwrap(ListIterator iterator)
Create an ByteListIterator wrapping the specified ListIterator ListIterator.

Field Detail

_iterator

private ListIterator _iterator

Constructor Detail

ListIteratorByteListIterator

public ListIteratorByteListIterator(ListIterator iterator)
Creates an ByteListIterator wrapping the specified ListIterator ListIterator.

See Also: ListIteratorByteListIterator

Method Detail

add

public void add(byte element)

hasNext

public boolean hasNext()

hasPrevious

public boolean hasPrevious()

next

public byte next()

nextIndex

public int nextIndex()

previous

public byte previous()

previousIndex

public int previousIndex()

remove

public void remove()

set

public void set(byte element)

wrap

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

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

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

Copyright (c) 2002-2003 - Apache Software Foundation