Class CloseableIterable<T>
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.util.CloseableIterable<T>
-
-
Constructor Summary
Constructors Constructor Description CloseableIterable(Iterable<T> iterable, Closeable closeable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
wrap
public static <T> CloseableIterable<T> wrap(Iterable<T> iterable, Closeable closeable)
-
wrap
public static <T> CloseableIterable<T> wrap(Iterable<T> iterable)
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-