org.ehcache.spi.cache
Interface Store.Iterator<T>

Type Parameters:
T - the type of the elements iterated over
Enclosing interface:
Store<K,V>

public static interface Store.Iterator<T>

An iterator over a Store.


Method Summary
 boolean hasNext()
          Returns true if the iteration has more elements.
 T next()
          Returns the next element in the iteration.
 

Method Detail

hasNext

boolean hasNext()
Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing a NoSuchElementException.)

Returns:
true if the iterator has more elements.

next

T next()
       throws CacheAccessException
Returns the next element in the iteration.

Returns:
the next element in the iteration.
Throws:
java.util.NoSuchElementException - iteration has no more elements.
CacheAccessException - if accessing the next element failed