com.satline.util.collections
Class MappedListIterator<F,T>

java.lang.Object
  extended by com.satline.util.collections.MappedIterator<F,T>
      extended by com.satline.util.collections.MappedListIterator<F,T>
All Implemented Interfaces:
java.util.Iterator<T>, java.util.ListIterator<T>

public class MappedListIterator<F,T>
extends MappedIterator<F,T>
implements java.util.ListIterator<T>

Author:
tomas.teubner

Field Summary
 
Fields inherited from class com.satline.util.collections.MappedIterator
mapper
 
Constructor Summary
MappedListIterator(java.util.ListIterator<F> iterator, ObjectMapping<F,T> mapper)
           
 
Method Summary
 void add(T o)
           
 boolean hasPrevious()
           
 int nextIndex()
           
 T previous()
           
 int previousIndex()
           
 void set(T o)
           
 
Methods inherited from class com.satline.util.collections.MappedIterator
hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.ListIterator
hasNext, next, remove
 

Constructor Detail

MappedListIterator

public MappedListIterator(java.util.ListIterator<F> iterator,
                          ObjectMapping<F,T> mapper)
Method Detail

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface java.util.ListIterator<T>

previous

public T previous()
Specified by:
previous in interface java.util.ListIterator<T>

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface java.util.ListIterator<T>

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface java.util.ListIterator<T>

set

public void set(T o)
Specified by:
set in interface java.util.ListIterator<T>

add

public void add(T o)
Specified by:
add in interface java.util.ListIterator<T>


Copyright © 2007 null. All Rights Reserved.