net.sf.webmancer.util.immutable
Class ImmutableListIterator<T>

java.lang.Object
  extended by net.sf.webmancer.util.immutable.ImmutableListIterator<T>
Type Parameters:
T -
All Implemented Interfaces:
java.util.Iterator<T>, java.util.ListIterator<T>

public final class ImmutableListIterator<T>
extends java.lang.Object
implements java.util.ListIterator<T>

Author:
Michal Burda

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

Constructor Detail

ImmutableListIterator

public ImmutableListIterator(java.util.ListIterator<? extends T> iterator)
Parameters:
iterator -
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<T>
Specified by:
hasNext in interface java.util.ListIterator<T>
See Also:
ListIterator.hasNext()

next

public T next()
Specified by:
next in interface java.util.Iterator<T>
Specified by:
next in interface java.util.ListIterator<T>
See Also:
ListIterator.next()

hasPrevious

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

previous

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

nextIndex

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

previousIndex

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

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<T>
Specified by:
remove in interface java.util.ListIterator<T>
See Also:
ListIterator.remove()

set

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

add

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


Copyright © 2006-2007. All Rights Reserved.