Dashboard Builder Commons 6.0.0.Beta1

org.jboss.dashboard.database.cache.custom.map
Class AbstractLinkedMap.LinkIterator

java.lang.Object
  extended by org.jboss.dashboard.database.cache.custom.map.AbstractLinkedMap.LinkIterator
All Implemented Interfaces:
Iterator, org.apache.commons.collections.OrderedIterator, org.apache.commons.collections.ResettableIterator
Direct Known Subclasses:
AbstractLinkedMap.EntrySetIterator, AbstractLinkedMap.LinkMapIterator, AbstractLinkedMap.ValuesIterator
Enclosing class:
AbstractLinkedMap

protected abstract static class AbstractLinkedMap.LinkIterator
extends Object
implements org.apache.commons.collections.OrderedIterator, org.apache.commons.collections.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
protected AbstractLinkedMap.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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.commons.collections.OrderedIterator
previous
 
Methods inherited from interface java.util.Iterator
next
 

Field Detail

parent

protected final AbstractLinkedMap parent
The parent map


last

protected AbstractLinkedMap.LinkEntry last
The current (last returned) entry


next

protected AbstractLinkedMap.LinkEntry next
The next entry


expectedModCount

protected int expectedModCount
The modification count expected

Constructor Detail

AbstractLinkedMap.LinkIterator

protected AbstractLinkedMap.LinkIterator(AbstractLinkedMap parent)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface org.apache.commons.collections.OrderedIterator

nextEntry

protected AbstractLinkedMap.LinkEntry nextEntry()

previousEntry

protected AbstractLinkedMap.LinkEntry previousEntry()

currentEntry

protected AbstractLinkedMap.LinkEntry currentEntry()

remove

public void remove()
Specified by:
remove in interface Iterator

reset

public void reset()
Specified by:
reset in interface org.apache.commons.collections.ResettableIterator

toString

public String toString()
Overrides:
toString in class Object

Dashboard Builder Commons 6.0.0.Beta1

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.