Package thredds.inventory
Class MFileIterator
- java.lang.Object
-
- thredds.inventory.MFileIterator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterator<MFile>,CloseableIterator<MFile>
public class MFileIterator extends Object implements CloseableIterator<MFile>
An iterator over MFiles, closeable so its a target for try-with-resource- Since:
- 11/20/13
-
-
Constructor Summary
Constructors Constructor Description MFileIterator(Iterator<MFile> iter, MFileFilter filter)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanhasNext()MFilenext()voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
MFileIterator
public MFileIterator(Iterator<MFile> iter, MFileFilter filter)
Constructor- Parameters:
iter- iterator over MFilesfilter- optional filter, may be null
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-