closeablecollection.java

来自「shape file read and write」· Java 代码 · 共 26 行

JAVA
26
字号
/**
 * 
 */
package org.geotools.index;

import java.io.IOException;
import java.util.Collection;
import java.util.Iterator;

/**
 * Tag interface for collection that must be closed 
 * 
 * @author jesse
 */
public interface CloseableCollection<T> extends Collection<T>{

    /**
     * Close the collection so it cleans up its resources
     */
    void close() throws IOException;
    /**
     * Close the collection so it cleans up its resources
     */
    void closeIterator(Iterator<T> iter) throws IOException;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?