ca.uhn.cache.internal
Interface IChunkIterator
- All Known Implementing Classes:
- ChunkIterator
- public interface IChunkIterator
Iterator through a list of IChunk
s.
- Version:
- $Revision: 1.1 $ updated on $Date: 2005/01/24 22:53:27 $ by $Author: bryan_tripp $
- Author:
- Bryan Tripp
hasNext
public boolean hasNext()
- Returns:
- true iff there is another chunk; implicitly calls close()
if false.
next
public IChunk next()
throws java.util.NoSuchElementException
- Returns:
- the next IChunk
- Throws:
java.util.NoSuchElementException
- if called when hasNext() returns false
TODO: throw same exception as IChunkStore (none currently) on error
close
public void close()
- Releases any resources held by this iterator.
Copyright © 2004-2005 University Health Network. All Rights Reserved.