ucar.nc2.util.CloseableIterator Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 1998-2018 John Caron and University Corporation for Atmospheric Research/Unidata
* See LICENSE for license information.
*/
package ucar.nc2.util;
import java.io.Closeable;
import java.util.Iterator;
/**
* An iterator that must be closed.
*
* try (CloseableIterator iter = getIterator()) {
* // do stuff
* }
*
* @author caron
* @since 11/20/13
*/
public interface CloseableIterator extends Iterator, Closeable {
}