| Constructor and Description |
|---|
CloseableIterable(Iterable<T> iterable,
Closeable closeable) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
@NotNull Iterator<T> |
iterator() |
static <T> CloseableIterable<T> |
wrap(Iterable<T> iterable) |
static <T> CloseableIterable<T> |
wrap(Iterable<T> iterable,
Closeable closeable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static <T> CloseableIterable<T> wrap(Iterable<T> iterable, Closeable closeable)
public static <T> CloseableIterable<T> wrap(Iterable<T> iterable)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.