java.util.Iterator
, OrderedIterator
, ResettableIterator
AbstractLinkedMap.EntrySetIterator
, AbstractLinkedMap.LinkMapIterator
, AbstractLinkedMap.ValuesIterator
protected abstract static class AbstractLinkedMap.LinkIterator extends java.lang.Object implements OrderedIterator, ResettableIterator
Modifier and Type | Field | 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 | Description |
---|---|---|
protected |
LinkIterator(AbstractLinkedMap parent) |
Modifier and Type | Method | 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, wait
previous
protected 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.Iterator
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 remove()
remove
in interface java.util.Iterator
public void reset()
ResettableIterator
reset
in interface ResettableIterator
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2001-2017 Apache Software Foundation. All Rights Reserved.