Package org.apache.felix.resolver.util
Class OpenHashMap.MapIterator
- java.lang.Object
-
- org.apache.felix.resolver.util.OpenHashMap.MapIterator
-
- Direct Known Subclasses:
OpenHashMap.EntryIterator,OpenHashMap.FastEntryIterator,OpenHashMap.KeyIterator,OpenHashMap.ValueIterator
- Enclosing class:
- OpenHashMap<K,V>
private class OpenHashMap.MapIterator extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intcurrThe last entry that was returned (or -1 if we did not iterate or usedIterator.remove()).(package private) intindexThe current index (in the sense of aListIterator).(package private) intnextThe entry that will be returned by the next call toListIterator.next()(ornullif no next entry exists).(package private) intprevThe entry that will be returned by the next call toListIterator.previous()(ornullif no previous entry exists).
-
Constructor Summary
Constructors Modifier Constructor Description privateMapIterator()privateMapIterator(java.lang.Object from)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intback(int n)private voidensureIndexKnown()booleanhasNext()booleanhasPrevious()intnextEntry()intnextIndex()intpreviousEntry()intpreviousIndex()voidremove()intskip(int n)
-
-
-
Field Detail
-
prev
int prev
The entry that will be returned by the next call toListIterator.previous()(ornullif no previous entry exists).
-
next
int next
The entry that will be returned by the next call toListIterator.next()(ornullif no next entry exists).
-
curr
int curr
The last entry that was returned (or -1 if we did not iterate or usedIterator.remove()).
-
index
int index
The current index (in the sense of aListIterator). Note that this value is not meaningful when this iterator has been created using the nonempty constructor.
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
hasPrevious
public boolean hasPrevious()
-
ensureIndexKnown
private void ensureIndexKnown()
-
nextIndex
public int nextIndex()
-
previousIndex
public int previousIndex()
-
nextEntry
public int nextEntry()
-
previousEntry
public int previousEntry()
-
remove
public void remove()
-
skip
public int skip(int n)
-
back
public int back(int n)
-
-