public interface CloseableIterator<T>
extends java.util.Iterator<T>, java.lang.AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close() |
static <T> CloseableIterator<T> |
empty() |
static <T> CloseableIterator<T> |
wrap(java.util.Iterator<T> iter) |
void close()
close
in interface java.lang.AutoCloseable
static <T> CloseableIterator<T> wrap(java.util.Iterator<T> iter)
static <T> CloseableIterator<T> empty()
Copyright © 2009- The Apache Software Foundation