protected abstract static class AbstractLinkedMap.LinkIterator extends 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 |
AbstractLinkedMap.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.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
previous
protected final AbstractLinkedMap parent
protected AbstractLinkedMap.LinkEntry last
protected AbstractLinkedMap.LinkEntry next
protected int expectedModCount
protected AbstractLinkedMap.LinkIterator(AbstractLinkedMap parent)
public boolean hasPrevious()
OrderedIterator
hasPrevious
in interface OrderedIterator
true
if the iterator has a previous elementprotected AbstractLinkedMap.LinkEntry nextEntry()
protected AbstractLinkedMap.LinkEntry previousEntry()
protected AbstractLinkedMap.LinkEntry currentEntry()
public void reset()
ResettableIterator
reset
in interface ResettableIterator
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.