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.Modifier and Type | Method and Description |
---|---|
void |
close() |
forEachRemaining, hasNext, next, remove
void close()
close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2022. All rights reserved.