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) int
curr
The last entry that was returned (or -1 if we did not iterate or usedIterator.remove()
).(package private) int
index
The current index (in the sense of aListIterator
).(package private) int
next
The entry that will be returned by the next call toListIterator.next()
(ornull
if no next entry exists).(package private) int
prev
The entry that will be returned by the next call toListIterator.previous()
(ornull
if no previous entry exists).
-
Constructor Summary
Constructors Modifier Constructor Description private
MapIterator()
private
MapIterator(java.lang.Object from)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
back(int n)
private void
ensureIndexKnown()
boolean
hasNext()
boolean
hasPrevious()
int
nextEntry()
int
nextIndex()
int
previousEntry()
int
previousIndex()
void
remove()
int
skip(int n)
-
-
-
Field Detail
-
prev
int prev
The entry that will be returned by the next call toListIterator.previous()
(ornull
if no previous entry exists).
-
next
int next
The entry that will be returned by the next call toListIterator.next()
(ornull
if 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)
-
-