JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.aspects.persistence
Class StorageIterator

java.lang.Object
  |
  +--org.objectweb.jac.aspects.persistence.StorageIterator
All Implemented Interfaces:
Iterator
Direct Known Subclasses:
ListIterator, MapIterator, SetIterator

public abstract class StorageIterator
extends Object
implements Iterator


Constructor Summary
StorageIterator(Wrappee collection)
           
 
Method Summary
protected abstract  long getCollectionSize()
          Returns the size of the collection
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageIterator

public StorageIterator(Wrappee collection)
Method Detail

hasNext

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

next

public Object next()
            throws NoSuchElementException
Specified by:
next in interface Iterator
NoSuchElementException

remove

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

getCollectionSize

protected abstract long getCollectionSize()
                                   throws Exception
Returns the size of the collection

Exception

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli