org.apache.commons.collections.iterators

Class ProxyListIterator

Implemented Interfaces:
ListIterator

public class ProxyListIterator
extends java.lang.Object
implements ListIterator

A proxy ListIterator which delegates its methods to a proxy instance.
Version:
$Revision: 1.9 $ $Date: 2004/02/18 00:59:50 $
Author:
Rodney Waldhoff
Since:
Commons Collections 2.0

Constructor Summary

ProxyListIterator()
Constructs a new ProxyListIterator that will not function until setListIterator is invoked.
ProxyListIterator(ListIterator iterator)
Constructs a new ProxyListIterator that will use the given list iterator.

Method Summary

void
add(Object o)
Invokes the underlying ListIterator.add(Object) method.
ListIterator
getListIterator()
Getter for property iterator.
boolean
hasNext()
Invokes the underlying ListIterator.hasNext() method.
boolean
hasPrevious()
Invokes the underlying ListIterator.hasPrevious() method.
Object
next()
Invokes the underlying ListIterator.next() method.
int
nextIndex()
Invokes the underlying ListIterator.nextIndex() method.
Object
previous()
Invokes the underlying ListIterator.previous() method.
int
previousIndex()
Invokes the underlying ListIterator.previousIndex() method.
void
remove()
Invokes the underlying ListIterator.remove() method.
void
set(Object o)
Invokes the underlying ListIterator.set(Object) method.
void
setListIterator(ListIterator iterator)
Setter for property iterator.

Constructor Details

ProxyListIterator

public ProxyListIterator()

ProxyListIterator

public ProxyListIterator(ListIterator iterator)
Constructs a new ProxyListIterator that will use the given list iterator.
Parameters:
iterator - the list iterator to use

Method Details

add

public void add(Object o)
Invokes the underlying ListIterator.add(Object) method.

getListIterator

public ListIterator getListIterator()
Getter for property iterator.
Returns:
Value of property iterator.

hasNext

public boolean hasNext()
Invokes the underlying ListIterator.hasNext() method.

hasPrevious

public boolean hasPrevious()
Invokes the underlying ListIterator.hasPrevious() method.

next

public Object next()
Invokes the underlying ListIterator.next() method.

nextIndex

public int nextIndex()
Invokes the underlying ListIterator.nextIndex() method.

previous

public Object previous()
Invokes the underlying ListIterator.previous() method.

previousIndex

public int previousIndex()
Invokes the underlying ListIterator.previousIndex() method.

remove

public void remove()
Invokes the underlying ListIterator.remove() method.

set

public void set(Object o)
Invokes the underlying ListIterator.set(Object) method.

setListIterator

public void setListIterator(ListIterator iterator)
Setter for property iterator.
Parameters:
iterator - New value of property iterator.

Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.