|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.commons.util.iterator.AbstractMapIterator<java.lang.Integer,V>
org.millscript.commons.util.iterator.AbstractListIterator<V>
public abstract class AbstractListIterator<V>
The class provides a skeletal implementation of the list iterator interface, to help with custom implementations.
All you need to do is provide an implmentation for the AbstractMapIterator.getValue() and AbstractMapIterator.outOfBounds() methods.
| Field Summary | |
|---|---|
protected int |
position
The current position(one based) in the iteration. |
| Constructor Summary | |
|---|---|
AbstractListIterator()
|
|
| Method Summary | |
|---|---|
protected void |
advance()
Advances this iterator to its next point. |
Listlet<V> |
currentMaplet()
Returns the current mapping in the iteration. |
protected java.lang.Integer |
getKey()
Returns the key for the current mapping in the iteration. |
protected Listlet<V> |
getMaplet()
Returns the current mapping in the iteration. |
Listlet<V> |
nextMaplet()
Returns the next mapping in the iteration. |
| Methods inherited from class org.millscript.commons.util.iterator.AbstractMapIterator |
|---|
currentKey, currentValue, getValue, nextKey, nextValue, outOfBounds |
| 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, hasNext, nextKey, nextValue |
| Field Detail |
|---|
protected int position
| Constructor Detail |
|---|
public AbstractListIterator()
| Method Detail |
|---|
protected void advance()
AbstractMapIterator
advance in class AbstractMapIterator<java.lang.Integer,V>AbstractMapIterator.advance()protected java.lang.Integer getKey()
AbstractMapIterator
getKey in class AbstractMapIterator<java.lang.Integer,V>AbstractMapIterator.getKey()protected Listlet<V> getMaplet()
AbstractMapIterator
getMaplet in class AbstractMapIterator<java.lang.Integer,V>AbstractMapIterator.getMaplet()public Listlet<V> currentMaplet()
MapIterator
currentMaplet in interface ListIterator<V>currentMaplet in interface MapIterator<java.lang.Integer,V>currentMaplet in class AbstractMapIterator<java.lang.Integer,V>MapIterator.currentMaplet()public Listlet<V> nextMaplet()
MapIterator
nextMaplet in interface ListIterator<V>nextMaplet in interface MapIterator<java.lang.Integer,V>nextMaplet in class AbstractMapIterator<java.lang.Integer,V>MapIterator.nextMaplet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||