org.apache.activemq.kaha.impl.container
Class CachedContainerListIterator

java.lang.Object
  extended by org.apache.activemq.kaha.impl.container.CachedContainerListIterator
All Implemented Interfaces:
Iterator, ListIterator

public class CachedContainerListIterator
extends Object
implements ListIterator

Version:
$Revision: 474986 $

Field Summary
protected  ListContainerImpl container
           
protected  StoreEntry currentItem
           
protected  int nextPos
           
protected  int pos
           
 
Constructor Summary
protected CachedContainerListIterator(ListContainerImpl container, int start)
           
 
Method Summary
 void add(Object o)
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 Object next()
           
 int nextIndex()
           
 Object previous()
           
 int previousIndex()
           
 void remove()
           
 void set(Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

container

protected ListContainerImpl container

pos

protected int pos

nextPos

protected int nextPos

currentItem

protected StoreEntry currentItem
Constructor Detail

CachedContainerListIterator

protected CachedContainerListIterator(ListContainerImpl container,
                                      int start)
Method Detail

hasNext

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

next

public Object next()
Specified by:
next in interface Iterator
Specified by:
next in interface ListIterator

remove

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

hasPrevious

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

previous

public Object previous()
Specified by:
previous in interface ListIterator

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface ListIterator

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface ListIterator

set

public void set(Object o)
Specified by:
set in interface ListIterator

add

public void add(Object o)
Specified by:
add in interface ListIterator


Copyright © 2011 Apache Software Foundation. All Rights Reserved.