public interface StreamIterable<E> extends Iterable<E>
| Modifier and Type | Method and Description |
|---|---|
static <E> StreamIterable<E> |
adapt(Iterable<? extends E> iterable) |
StreamIterable<E> |
concat(Iterable<? extends E> iterable) |
static <E> StreamIterable<E> |
empty() |
StreamIterable<E> |
filter(Predicate<? super E> predicate) |
<T> StreamIterable<T> |
flatMap(Function<? super E,? extends StreamIterable<? extends T>> function) |
E |
getOnly() |
StreamIterator<E> |
iterator() |
<T> StreamIterable<T> |
map(Function<? super E,? extends T> function) |
<T> T |
reduce(T initialValue,
BiFunction<? super T,? super E,? extends T> function) |
static <E> StreamIterable<E> |
singleton(E element) |
StreamIterable<E> |
sorted() |
StreamIterable<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() |
forEach, spliteratorstatic <E> StreamIterable<E> adapt(Iterable<? extends E> iterable)
static <E> StreamIterable<E> empty()
static <E> StreamIterable<E> singleton(E element)
StreamIterable<E> concat(Iterable<? extends E> iterable)
StreamIterable<E> filter(Predicate<? super E> predicate)
<T> StreamIterable<T> flatMap(Function<? super E,? extends StreamIterable<? extends T>> function)
E getOnly()
StreamIterator<E> iterator()
<T> StreamIterable<T> map(Function<? super E,? extends T> function)
<T> T reduce(T initialValue,
BiFunction<? super T,? super E,? extends T> function)
StreamIterable<E> sorted()
StreamIterable<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.