public final class CloseableIteratorUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T,R> CloseableIterator<R> |
map(CloseableIterator<T> closeableIterator,
Function<? super T,? extends R> mapper)
Maps a CloseableIterator from un input type T to an output type R using a mapper function.
|
static <E> CloseableIterator<E> |
toCloseableIterator(Iterator<E> iterator)
Converts an Iterator to a CloseableIterator.
|
public static <T,R> CloseableIterator<R> map(CloseableIterator<T> closeableIterator, Function<? super T,? extends R> mapper)
public static <E> CloseableIterator<E> toCloseableIterator(Iterator<E> iterator)
Copyright © 2018 Vitam. All rights reserved.