protected static abstract class

AbstractLinkedMap.LinkIterator

extends Object
implements OrderedIterator ResettableIterator
java.lang.Object
   ↳ org.apache.commons.collections.map.AbstractLinkedMap.LinkIterator
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Base Iterator that iterates in link order.

Summary

Fields
protected int expectedModCount The modification count expected
protected AbstractLinkedMap.LinkEntry last The current (last returned) entry
protected AbstractLinkedMap.LinkEntry next The next entry
protected final AbstractLinkedMap parent The parent map
Protected Constructors
AbstractLinkedMap.LinkIterator(AbstractLinkedMap parent)
Public Methods
boolean hasNext()
boolean hasPrevious()
Checks to see if there is a previous element that can be iterated to.
void remove()
void reset()
Resets the iterator back to the position at which the iterator was created.
String toString()
Protected Methods
AbstractLinkedMap.LinkEntry currentEntry()
AbstractLinkedMap.LinkEntry nextEntry()
AbstractLinkedMap.LinkEntry previousEntry()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.Iterator
From interface org.apache.commons.collections.OrderedIterator
From interface org.apache.commons.collections.ResettableIterator

Fields

protected int expectedModCount

The modification count expected

protected AbstractLinkedMap.LinkEntry last

The current (last returned) entry

protected AbstractLinkedMap.LinkEntry next

The next entry

protected final AbstractLinkedMap parent

The parent map

Protected Constructors

protected AbstractLinkedMap.LinkIterator (AbstractLinkedMap parent)

Public Methods

public boolean hasNext ()

public boolean hasPrevious ()

Checks to see if there is a previous element that can be iterated to.

Returns
  • true if the iterator has a previous element

public void remove ()

public void reset ()

Resets the iterator back to the position at which the iterator was created.

public String toString ()

Protected Methods

protected AbstractLinkedMap.LinkEntry currentEntry ()

protected AbstractLinkedMap.LinkEntry nextEntry ()

protected AbstractLinkedMap.LinkEntry previousEntry ()