coins.aflow.util
Class CoinsList.Itr

java.lang.Object
  extended bycoins.aflow.util.CoinsList.Itr
All Implemented Interfaces:
CoinsIterator, java.util.Iterator, java.util.ListIterator
Direct Known Subclasses:
SetRefReprListHir.SetRefReprListHirItr
Enclosing class:
CoinsList

protected class CoinsList.Itr
extends java.lang.Object
implements CoinsIterator


Field Summary
protected  int expectedModCount
           
protected  CoinsList.Entry lastReturned
           
protected  boolean lNexted
           
protected  CoinsList.Entry next
           
protected  int nextIndex
           
 
Constructor Summary
protected CoinsList.Itr(int index)
           
 
Method Summary
 void add(java.lang.Object o)
          Returns what was returned by the previous call to next or previous This is what will be removed by remove.
 void addAfter(java.lang.Object o)
          Adds an element to the underlying list after the imaginary cursor of this iterator.
protected  void checkForComodification()
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 java.lang.Object lastReturned()
           
 java.lang.Object next()
          Returns the next element, and advances the imaginary cursor by one.
 int nextIndex()
          Returns the index of the next element
 java.lang.Object previous()
          Returns the previous element, and steps back the imaginary cursor by one.
 int previousIndex()
          Returns the index of the previous element
 void remove()
          Remove what was returned by the previous call to next or previous
 void set(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastReturned

protected CoinsList.Entry lastReturned

next

protected CoinsList.Entry next

nextIndex

protected int nextIndex

expectedModCount

protected int expectedModCount

lNexted

protected boolean lNexted
Constructor Detail

CoinsList.Itr

protected CoinsList.Itr(int index)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.ListIterator

next

public java.lang.Object next()
Description copied from interface: CoinsIterator
Returns the next element, and advances the imaginary cursor by one.

Specified by:
next in interface CoinsIterator

hasPrevious

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

previous

public java.lang.Object previous()
Description copied from interface: CoinsIterator
Returns the previous element, and steps back the imaginary cursor by one.

Specified by:
previous in interface CoinsIterator

nextIndex

public int nextIndex()
Description copied from interface: CoinsIterator
Returns the index of the next element

Specified by:
nextIndex in interface CoinsIterator

previousIndex

public int previousIndex()
Description copied from interface: CoinsIterator
Returns the index of the previous element

Specified by:
previousIndex in interface CoinsIterator

remove

public void remove()
Description copied from interface: CoinsIterator
Remove what was returned by the previous call to next or previous

Specified by:
remove in interface CoinsIterator

lastReturned

public java.lang.Object lastReturned()

set

public void set(java.lang.Object o)
Specified by:
set in interface java.util.ListIterator

add

public void add(java.lang.Object o)
Description copied from interface: CoinsIterator
Returns what was returned by the previous call to next or previous This is what will be removed by remove. In the situation where remove will throw IllegalArgumentException, this method will return null. Object lastReturned(); /** Adds an element to the underlying list before the imaginary cursor of this iterator. That is, the subsequent call to next will be unaffected while the call to previous will return the object added by this method.

Specified by:
add in interface CoinsIterator

addAfter

public void addAfter(java.lang.Object o)
Description copied from interface: CoinsIterator
Adds an element to the underlying list after the imaginary cursor of this iterator. That is, the subsequent call to previous will be unaffected while the call to next will return the object added by this method.

Specified by:
addAfter in interface CoinsIterator

checkForComodification

protected final void checkForComodification()