org.apache.commons.collections.map

Class AbstractLinkedMap.LinkIterator

Enclosing Class:
AbstractLinkedMap
Implemented Interfaces:
Iterator, 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

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

Constructor Summary

LinkIterator(AbstractLinkedMap parent)

Method Summary

protected AbstractLinkedMap.LinkEntry
currentEntry()
boolean
hasNext()
boolean
hasPrevious()
protected AbstractLinkedMap.LinkEntry
nextEntry()
protected 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

AbstractLinkedMap.LinkEntry next
The next entry

parent

protected final AbstractLinkedMap parent
The parent map

Constructor Details

LinkIterator

protected LinkIterator(AbstractLinkedMap parent)

Method Details

currentEntry

protected AbstractLinkedMap.LinkEntry currentEntry()

hasNext

public boolean hasNext()

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface OrderedIterator

nextEntry

protected AbstractLinkedMap.LinkEntry nextEntry()

previousEntry

protected AbstractLinkedMap.LinkEntry previousEntry()

remove

public void remove()

reset

public void reset()
Specified by:
reset in interface ResettableIterator

toString

public String toString()

Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.