org.millscript.commons.util.list
Class ELinkedList.SharedLinkedListIterator<V>

java.lang.Object
  extended by org.millscript.commons.util.iterator.AbstractMapIterator<java.lang.Integer,V>
      extended by org.millscript.commons.util.iterator.AbstractListIterator<V>
          extended by org.millscript.commons.util.list.ELinkedList.ELinkedListIterator<V>
              extended by org.millscript.commons.util.list.ELinkedList.SharedLinkedListIterator<V>
All Implemented Interfaces:
ListIterator<V>, MapIterator<java.lang.Integer,V>
Enclosing class:
ELinkedList<V>

public static class ELinkedList.SharedLinkedListIterator<V>
extends ELinkedList.ELinkedListIterator<V>

This class provides a map interator implementation which iterates over a shared poriton of the specified linked list.


Field Summary
 
Fields inherited from class org.millscript.commons.util.iterator.AbstractListIterator
position
 
Constructor Summary
ELinkedList.SharedLinkedListIterator(org.millscript.commons.util.list.ELinkedList.Link<V> firstLink, int num)
          Constructs a new linked list map iterator to iterate over a shared portion of the values in the specified linked list.
 
Method Summary
protected  void advance()
          Advances this iterator to its next point.
 
Methods inherited from class org.millscript.commons.util.list.ELinkedList.ELinkedListIterator
getValue, hasNext, outOfBounds
 
Methods inherited from class org.millscript.commons.util.iterator.AbstractListIterator
currentMaplet, getKey, getMaplet, nextMaplet
 
Methods inherited from class org.millscript.commons.util.iterator.AbstractMapIterator
currentKey, currentValue, nextKey, nextValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.millscript.commons.util.MapIterator
currentKey, currentValue, nextKey, nextValue
 

Constructor Detail

ELinkedList.SharedLinkedListIterator

public ELinkedList.SharedLinkedListIterator(org.millscript.commons.util.list.ELinkedList.Link<V> firstLink,
                                            int num)
Constructs a new linked list map iterator to iterate over a shared portion of the values in the specified linked list.

Parameters:
firstLink - the first link in the iteration
num - the number of items this iterator should return
Method Detail

advance

protected void advance()
Description copied from class: AbstractMapIterator
Advances this iterator to its next point. This method allows a common implementation of the next* methods, making it a little bit easier to implement the map iterator interface.

Overrides:
advance in class ELinkedList.ELinkedListIterator<V>
See Also:
AbstractMapIterator.advance()


Copyright © 2005-2007 Open World Ltd. All Rights Reserved.