public abstract class AbstractStreamIterator<E> extends Object implements StreamIterator<E>
| Constructor and Description |
|---|
AbstractStreamIterator() |
| Modifier and Type | Method and Description |
|---|---|
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) |
void |
remove() |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadapt, empty, singletonforEachRemaining, hasNext, nextpublic StreamIterator<E> concat(Iterator<? extends E> iterator)
concat in interface StreamIterator<E>public StreamIterator<E> filter(Predicate<? super E> predicate)
filter in interface StreamIterator<E>public <T> StreamIterator<T> flatMap(Function<? super E,? extends StreamIterator<? extends T>> function)
flatMap in interface StreamIterator<E>public E getOnly()
getOnly in interface StreamIterator<E>public <T> StreamIterator<T> map(Function<? super E,? extends T> function)
map in interface StreamIterator<E>public final StreamIterator<E> sorted()
sorted in interface StreamIterator<E>public final <T> T reduce(T initialValue,
BiFunction<? super T,? super E,? extends T> function)
reduce in interface StreamIterator<E>public StreamIterator<E> sorted(Comparator<? super E> comparator)
sorted in interface StreamIterator<E>public ImmutableList<E> toImmutableList()
toImmutableList in interface StreamIterator<E>public final <NK,NV> ImmutableMap<NK,NV> toImmutableMap(Function<? super E,? extends NK> keyFunction, Function<? super E,? extends NV> valueFunction)
toImmutableMap in interface StreamIterator<E>public ImmutableSet<E> toImmutableSet()
toImmutableSet in interface StreamIterator<E>Copyright © 2019 Objectos Software LTDA. All rights reserved.