Class AbstractReferenceMap.ReferenceBaseIterator<K,V>
- java.lang.Object
-
- org.apache.commons.collections4.map.AbstractReferenceMap.ReferenceBaseIterator<K,V>
-
- Direct Known Subclasses:
AbstractReferenceMap.ReferenceEntrySetIterator
,AbstractReferenceMap.ReferenceKeySetIterator
,AbstractReferenceMap.ReferenceMapIterator
,AbstractReferenceMap.ReferenceValuesIterator
- Enclosing class:
- AbstractReferenceMap<K,V>
static class AbstractReferenceMap.ReferenceBaseIterator<K,V> extends java.lang.Object
Base iterator class.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) K
currentKey
(package private) V
currentValue
(package private) AbstractReferenceMap.ReferenceEntry<K,V>
entry
(package private) int
expectedModCount
(package private) int
index
(package private) K
nextKey
(package private) V
nextValue
(package private) AbstractReferenceMap<K,V>
parent
The parent map(package private) AbstractReferenceMap.ReferenceEntry<K,V>
previous
-
Constructor Summary
Constructors Constructor Description ReferenceBaseIterator(AbstractReferenceMap<K,V> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
checkMod()
protected AbstractReferenceMap.ReferenceEntry<K,V>
currentEntry()
boolean
hasNext()
protected AbstractReferenceMap.ReferenceEntry<K,V>
nextEntry()
private boolean
nextNull()
void
remove()
-
-
-
Field Detail
-
parent
final AbstractReferenceMap<K,V> parent
The parent map
-
index
int index
-
entry
AbstractReferenceMap.ReferenceEntry<K,V> entry
-
previous
AbstractReferenceMap.ReferenceEntry<K,V> previous
-
currentKey
K currentKey
-
nextKey
K nextKey
-
currentValue
V currentValue
-
nextValue
V nextValue
-
expectedModCount
int expectedModCount
-
-
Constructor Detail
-
ReferenceBaseIterator
public ReferenceBaseIterator(AbstractReferenceMap<K,V> parent)
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
checkMod
private void checkMod()
-
nextNull
private boolean nextNull()
-
nextEntry
protected AbstractReferenceMap.ReferenceEntry<K,V> nextEntry()
-
currentEntry
protected AbstractReferenceMap.ReferenceEntry<K,V> currentEntry()
-
remove
public void remove()
-
-