2021-10-13 00:23:56 +02:00
|
|
|
package it.cavallium.dbengine.lucene;
|
|
|
|
|
2021-12-18 21:01:14 +01:00
|
|
|
import it.cavallium.dbengine.database.SafeCloseable;
|
2021-10-13 00:23:56 +02:00
|
|
|
import java.io.Closeable;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.util.Iterator;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
|
2021-12-18 21:01:14 +01:00
|
|
|
public interface CloseableIterable<T> extends Iterable<T>, SafeCloseable {
|
2021-10-13 00:23:56 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
void close();
|
|
|
|
|
|
|
|
@NotNull
|
|
|
|
@Override
|
|
|
|
Iterator<T> iterator();
|
|
|
|
}
|