public class MFileIterator extends java.lang.Object implements CloseableIterator<MFile>
Constructor and Description |
---|
MFileIterator(java.util.Iterator<MFile> iter,
MFileFilter filter)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
hasNext() |
MFile |
next() |
void |
remove() |
public MFileIterator(java.util.Iterator<MFile> iter, MFileFilter filter)
iter
- iterator over MFilesfilter
- optional filter, may be nullpublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public boolean hasNext()
hasNext
in interface java.util.Iterator<MFile>
public void remove()
remove
in interface java.util.Iterator<MFile>