|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.aflow.util.CoinsList.Itr
| 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 |
protected CoinsList.Entry lastReturned
protected CoinsList.Entry next
protected int nextIndex
protected int expectedModCount
protected boolean lNexted
| Constructor Detail |
protected CoinsList.Itr(int index)
| Method Detail |
public boolean hasNext()
hasNext in interface java.util.ListIteratorpublic java.lang.Object next()
CoinsIterator
next in interface CoinsIteratorpublic boolean hasPrevious()
hasPrevious in interface java.util.ListIteratorpublic java.lang.Object previous()
CoinsIterator
previous in interface CoinsIteratorpublic int nextIndex()
CoinsIterator
nextIndex in interface CoinsIteratorpublic int previousIndex()
CoinsIterator
previousIndex in interface CoinsIteratorpublic void remove()
CoinsIteratornext or previous
remove in interface CoinsIteratorpublic java.lang.Object lastReturned()
public void set(java.lang.Object o)
set in interface java.util.ListIteratorpublic void add(java.lang.Object o)
CoinsIteratornext 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.
add in interface CoinsIteratorpublic void addAfter(java.lang.Object o)
CoinsIteratorprevious will be unaffected while the call to next will return the object added by this method.
addAfter in interface CoinsIteratorprotected final void checkForComodification()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||