T
- public class DefaultCloseableIterator<T> extends Object implements CloseableIterator<T>
Modifier and Type | Field and Description |
---|---|
protected Closeable |
closeableItem |
protected Iterator<T> |
wrapped |
Constructor and Description |
---|
DefaultCloseableIterator(Iterator<T> wrapped) |
DefaultCloseableIterator(Iterator<T> wrapped,
Closeable closeable) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the underlying iterator in case it implements
CloseableIterator . |
protected void |
finalize() |
boolean |
hasNext() |
T |
next() |
void |
remove() |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected Closeable closeableItem
public void close()
CloseableIterator
.close
in interface Closeable
close
in interface AutoCloseable
close
in interface CloseableIterator<T>
Copyright © 1996–2019 Geotools. All rights reserved.