2021-10-13 00:23:56 +02:00
|
|
|
package it.cavallium.dbengine.lucene;
|
|
|
|
|
2022-06-30 15:06:10 +02:00
|
|
|
import it.cavallium.dbengine.database.DiscardingCloseable;
|
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;
|
|
|
|
|
2022-06-30 15:06:10 +02:00
|
|
|
public interface CloseableIterable<T> extends Iterable<T>, DiscardingCloseable {
|
2021-10-13 00:23:56 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
void close();
|
|
|
|
|
|
|
|
@NotNull
|
|
|
|
@Override
|
|
|
|
Iterator<T> iterator();
|
|
|
|
}
|