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>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
The last entry that was returned (or -1 if we did not iterate or usedIterator.remove()
).(package private) int
The current index (in the sense of aListIterator
).(package private) int
The entry that will be returned by the next call toListIterator.next()
(ornull
if no next entry exists).(package private) int
The entry that will be returned by the next call toListIterator.previous()
(ornull
if no previous entry exists). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
prev
int prevThe entry that will be returned by the next call toListIterator.previous()
(ornull
if no previous entry exists). -
next
int nextThe entry that will be returned by the next call toListIterator.next()
(ornull
if no next entry exists). -
curr
int currThe last entry that was returned (or -1 if we did not iterate or usedIterator.remove()
). -
index
int indexThe current index (in the sense of aListIterator
). Note that this value is not meaningful when this iterator has been created using the nonempty constructor.
-
-
Constructor Details
-
MapIterator
private MapIterator() -
MapIterator
-
-
Method Details
-
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)
-