Package org.hibernate.query.spi
Interface CloseableIterator<T>
-
- All Superinterfaces:
AutoCloseable
,Iterator<T>
- All Known Implementing Classes:
ScrollableResultsIterator
@Incubating public interface CloseableIterator<T> extends Iterator<T>, AutoCloseable
Unification of Iterator and AutoCloseable- Since:
- 5.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
Method Detail
-
close
void close()
- Specified by:
close
in interfaceAutoCloseable
-
-