public interface StreamIterator<E> extends Iterator<E>
| Modifier and Type | Method and Description |
|---|---|
static <E> StreamIterator<E> |
adapt(Iterator<? extends E> iterator) |
StreamIterator<E> |
concat(Iterator<? extends E> iterator) |
static <E> StreamIterator<E> |
empty() |
StreamIterator<E> |
filter(Predicate<? super E> predicate) |
<T> StreamIterator<T> |
flatMap(Function<? super E,? extends StreamIterator<? extends T>> function) |
E |
getOnly() |
<T> StreamIterator<T> |
map(Function<? super E,? extends T> function) |
<T> T |
reduce(T initialValue,
BiFunction<? super T,? super E,? extends T> function) |
static <E> StreamIterator<E> |
singleton(E element) |
StreamIterator<E> |
sorted() |
StreamIterator<E> |
sorted(Comparator<? super E> comparator) |
ImmutableList<E> |
toImmutableList() |
<NK,NV> ImmutableMap<NK,NV> |
toImmutableMap(Function<? super E,? extends NK> keyFunction,
Function<? super E,? extends NV> valueFunction) |
ImmutableSet<E> |
toImmutableSet() |
forEachRemaining, hasNext, next, removestatic <E> StreamIterator<E> adapt(Iterator<? extends E> iterator)
static <E> StreamIterator<E> empty()
static <E> StreamIterator<E> singleton(E element)
StreamIterator<E> concat(Iterator<? extends E> iterator)
StreamIterator<E> filter(Predicate<? super E> predicate)
<T> StreamIterator<T> flatMap(Function<? super E,? extends StreamIterator<? extends T>> function)
E getOnly()
<T> StreamIterator<T> map(Function<? super E,? extends T> function)
<T> T reduce(T initialValue,
BiFunction<? super T,? super E,? extends T> function)
StreamIterator<E> sorted()
StreamIterator<E> sorted(Comparator<? super E> comparator)
ImmutableList<E> toImmutableList()
<NK,NV> ImmutableMap<NK,NV> toImmutableMap(Function<? super E,? extends NK> keyFunction, Function<? super E,? extends NV> valueFunction)
ImmutableSet<E> toImmutableSet()
Copyright © 2019 Objectos Software LTDA. All rights reserved.