protected abstract static class AbstractLinkedMap.LinkIterator extends java.lang.Object implements OrderedIterator, ResettableIterator
| Modifier and Type | Field and Description |
|---|---|
protected int |
expectedModCount
The modification count expected
|
protected AbstractLinkedMap.LinkEntry |
last
The current (last returned) entry
|
protected AbstractLinkedMap.LinkEntry |
next
The next entry
|
protected AbstractLinkedMap |
parent
The parent map
|
| Modifier | Constructor and Description |
|---|---|
protected |
LinkIterator(AbstractLinkedMap parent) |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractLinkedMap.LinkEntry |
currentEntry() |
boolean |
hasNext() |
boolean |
hasPrevious()
Checks to see if there is a previous element that can be iterated to.
|
protected AbstractLinkedMap.LinkEntry |
nextEntry() |
protected AbstractLinkedMap.LinkEntry |
previousEntry() |
void |
remove() |
void |
reset()
Resets the iterator back to the position at which the iterator
was created.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpreviousprotected final AbstractLinkedMap parent
protected AbstractLinkedMap.LinkEntry last
protected AbstractLinkedMap.LinkEntry next
protected int expectedModCount
protected LinkIterator(AbstractLinkedMap parent)
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic boolean hasPrevious()
OrderedIteratorhasPrevious in interface OrderedIteratortrue if the iterator has a previous elementprotected AbstractLinkedMap.LinkEntry nextEntry()
protected AbstractLinkedMap.LinkEntry previousEntry()
protected AbstractLinkedMap.LinkEntry currentEntry()
public void remove()
remove in interface java.util.Iteratorpublic void reset()
ResettableIteratorreset in interface ResettableIteratorpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2001-2025 Apache Software Foundation. All Rights Reserved.