T
- public interface CloseableIterator<T> extends Iterator<T>, Closeable
CloseableIterator
serves as a bridging data structure for the underlying data store specific results that
can be wrapped in a Java 8 Stream
. This allows implementations to clean up any resources
they need to keep open to iterate over elements.Modifier and Type | Method and Description |
---|---|
void |
close() |
forEachRemaining, hasNext, next, remove
void close()
close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.