class CacheIterator
extends java.lang.Object
implements java.util.Iterator<java.io.File>
Constructor and Description |
---|
CacheIterator(java.io.File cacheFile,
int size)
constructor for Iterator over the cache
|
CacheIterator(java.io.File cacheFile, int size)
cacheFile
- File of the cache from Saver.size
- how many files are in the cache.public boolean hasNext()
hasNext
in interface java.util.Iterator<java.io.File>
public java.io.File next()
next
in interface java.util.Iterator<java.io.File>
public void remove()
remove
in interface java.util.Iterator<java.io.File>