⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.collections.map

Class AbstractLinkedMap.LinkIterator

java.lang.Object
|
+--org.apache.commons.collections.map.AbstractLinkedMap.LinkIterator
Enclosing Class:

All Implemented Interfaces:
OrderedIterator, ResettableIterator

Known Direct Subclasses:
AbstractLinkedMap.EntrySetIterator, AbstractLinkedMap.LinkMapIterator, AbstractLinkedMap.ValuesIterator


protected static abstract class AbstractLinkedMap.LinkIterator
extends java.lang.Object
implements OrderedIterator, ResettableIterator

Base Iterator that iterates in link order.

Field Summary

int

expectedModCount

The modification count expected

AbstractLinkedMap.LinkEntry

last

The current (last returned) entry

AbstractLinkedMap.LinkEntry

next

The next entry

AbstractLinkedMap

parent

The parent map

Constructor Summary

LinkIterator(AbstractLinkedMap parent)

Method Summary

AbstractLinkedMap.LinkEntry

currentEntry()

boolean

hasNext()

boolean

hasPrevious()

AbstractLinkedMap.LinkEntry

nextEntry()

AbstractLinkedMap.LinkEntry

previousEntry()

void

remove()

void

reset()

String

toString()

Field Details

expectedModCount

protected int expectedModCount

The modification count expected


last

protected AbstractLinkedMap.LinkEntry last

The current (last returned) entry


next

protected AbstractLinkedMap.LinkEntry next

The next entry


parent

protected final AbstractLinkedMap parent

The parent map

Constructor Details

LinkIterator

protected LinkIterator(AbstractLinkedMap parent)

Parameters:
parent

Method Details

currentEntry

protected AbstractLinkedMap.LinkEntry currentEntry()


hasNext

public boolean hasNext()


hasPrevious

public boolean hasPrevious()


nextEntry

protected AbstractLinkedMap.LinkEntry nextEntry()


previousEntry

protected AbstractLinkedMap.LinkEntry previousEntry()


remove

public void remove()


reset

public void reset()


toString

public String toString()