T - the type of items in the iterator.public interface CloseableIterator<T> extends Iterator<T>, Closeable
CloseableIterator is an Iterator which must provide an implementation
of the Closeable.close() method.void close()
close 在接口中 AutoCloseableclose 在接口中 CloseableCopyright © 2022. All rights reserved.