Top Description Methods
org.hibernate.query.spi

public Interface CloseableIterator<T>

extends Iterator<T>, AutoCloseable
Known Direct Implementers
org.hibernate.query.internal.ScrollableResultsIterator
Annotations
@Incubating
Imports
java.util.Iterator, org.hibernate.Incubating

Unification of Iterator and AutoCloseable
Author
Steve Ebersole
Since
5.2

Method Summary

Modifier and TypeMethod and Description
public void
close()

Redeclares java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.
Inherited from java.util.Iterator:
forEachRemaininghasNextnextremove

Method Detail

closeback to summary
public void close()

Redeclares java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override