janino.net

org.codehaus.janino.util.iterator
Class FilterListIterator<T>

java.lang.Object
  extended by org.codehaus.janino.util.iterator.FilterListIterator<T>
Type Parameters:
T - The element type of the list iterator
All Implemented Interfaces:
Iterator<T>, ListIterator<T>
Direct Known Subclasses:
ReverseListIterator

public abstract class FilterListIterator<T>
extends Object
implements ListIterator<T>

An ListIterator that retrieves its elements from a delegate ListIterator. The default implementation simply passes all method invocations to the delegate.


Field Summary
protected  ListIterator<T> delegate
           
 
Constructor Summary
FilterListIterator(ListIterator<T> delegate)
           
 
Method Summary
 void add(T o)
          Calls delegate.
 boolean hasNext()
          Calls delegate.
 boolean hasPrevious()
          Calls delegate.
 T next()
          Calls delegate.
 int nextIndex()
          Calls delegate.
 T previous()
          Calls delegate.
 int previousIndex()
          Calls delegate.
 void remove()
          Calls delegate.
 void set(T o)
          Calls delegate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected final ListIterator<T> delegate
See Also:
FilterListIterator
Constructor Detail

FilterListIterator

public FilterListIterator(ListIterator<T> delegate)
Method Detail

hasNext

public boolean hasNext()
Calls delegate.ListIterator.hasNext()

Specified by:
hasNext in interface Iterator<T>
Specified by:
hasNext in interface ListIterator<T>

next

public T next()
Calls delegate.ListIterator.next()

Specified by:
next in interface Iterator<T>
Specified by:
next in interface ListIterator<T>

hasPrevious

public boolean hasPrevious()
Calls delegate.ListIterator.hasPrevious()

Specified by:
hasPrevious in interface ListIterator<T>

previous

public T previous()
Calls delegate.ListIterator.previous()

Specified by:
previous in interface ListIterator<T>

nextIndex

public int nextIndex()
Calls delegate.ListIterator.nextIndex()

Specified by:
nextIndex in interface ListIterator<T>

previousIndex

public int previousIndex()
Calls delegate.ListIterator.previousIndex()

Specified by:
previousIndex in interface ListIterator<T>

remove

public void remove()
Calls delegate.ListIterator.remove()

Specified by:
remove in interface Iterator<T>
Specified by:
remove in interface ListIterator<T>

set

public void set(T o)
Calls delegate.ListIterator.set(java.lang.Object)

Specified by:
set in interface ListIterator<T>

add

public void add(T o)
Calls delegate.ListIterator.add(java.lang.Object)

Specified by:
add in interface ListIterator<T>

janino.net