Package tech.ytsaurus.core.operations
Interface CloseableIterator<T>
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.util.Iterator<T>
public interface CloseableIterator<T> extends java.util.Iterator<T>, java.lang.AutoCloseable
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default <R> CloseableIterator<R>
map(java.util.function.Function<? super T,? extends R> mapper)
default java.util.stream.Stream<T>
stream()
static <T> CloseableIterator<T>
wrap(java.lang.Iterable<T> delegate)
static <T> CloseableIterator<T>
wrap(java.util.Iterator<T> delegate)
-
-
-
Method Detail
-
stream
default java.util.stream.Stream<T> stream()
-
map
default <R> CloseableIterator<R> map(java.util.function.Function<? super T,? extends R> mapper)
-
wrap
static <T> CloseableIterator<T> wrap(java.lang.Iterable<T> delegate)
-
wrap
static <T> CloseableIterator<T> wrap(java.util.Iterator<T> delegate)
-
-