final class CollectSpliterators
extends java.lang.Object
common.collect internals.| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
CollectSpliterators.FlatMapSpliterator<InElementT,OutElementT,OutSpliteratorT extends java.util.Spliterator<OutElementT>>
Implements the
Stream#flatMap operation on spliterators. |
(package private) static class |
CollectSpliterators.FlatMapSpliteratorOfDouble<InElementT>
|
(package private) static class |
CollectSpliterators.FlatMapSpliteratorOfInt<InElementT>
|
(package private) static class |
CollectSpliterators.FlatMapSpliteratorOfLong<InElementT>
|
(package private) static class |
CollectSpliterators.FlatMapSpliteratorOfObject<InElementT,OutElementT>
Implementation of
Stream#flatMap with an object spliterator output type. |
(package private) static class |
CollectSpliterators.FlatMapSpliteratorOfPrimitive<InElementT,OutElementT,OutConsumerT,OutSpliteratorT extends java.util.Spliterator.OfPrimitive<OutElementT,OutConsumerT,OutSpliteratorT>>
Implementation of
Stream#flatMap with a primitive spliterator output type. |
| Modifier | Constructor and Description |
|---|---|
private |
CollectSpliterators() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static <T> java.util.Spliterator<T> |
filter(java.util.Spliterator<T> fromSpliterator,
java.util.function.Predicate<? super T> predicate)
Returns a
Spliterator filtered by the specified predicate. |
(package private) static <InElementT,OutElementT> |
flatMap(java.util.Spliterator<InElementT> fromSpliterator,
java.util.function.Function<? super InElementT,java.util.Spliterator<OutElementT>> function,
int topCharacteristics,
long topSize)
Returns a
Spliterator that iterates over the elements of the spliterators generated by
applying function to the elements of fromSpliterator. |
(package private) static <InElementT> |
flatMapToDouble(java.util.Spliterator<InElementT> fromSpliterator,
java.util.function.Function<? super InElementT,java.util.Spliterator.OfDouble> function,
int topCharacteristics,
long topSize)
Returns a
Spliterator.OfDouble that iterates over the elements of the spliterators
generated by applying function to the elements of fromSpliterator. |
(package private) static <InElementT> |
flatMapToInt(java.util.Spliterator<InElementT> fromSpliterator,
java.util.function.Function<? super InElementT,java.util.Spliterator.OfInt> function,
int topCharacteristics,
long topSize)
Returns a
Spliterator.OfInt that iterates over the elements of the spliterators
generated by applying function to the elements of fromSpliterator. |
(package private) static <InElementT> |
flatMapToLong(java.util.Spliterator<InElementT> fromSpliterator,
java.util.function.Function<? super InElementT,java.util.Spliterator.OfLong> function,
int topCharacteristics,
long topSize)
Returns a
Spliterator.OfLong that iterates over the elements of the spliterators
generated by applying function to the elements of fromSpliterator. |
(package private) static <T> java.util.Spliterator<T> |
indexed(int size,
int extraCharacteristics,
java.util.function.IntFunction<T> function) |
(package private) static <T> java.util.Spliterator<T> |
indexed(int size,
int extraCharacteristics,
java.util.function.IntFunction<T> function,
java.util.Comparator<? super T> comparator) |
(package private) static <InElementT,OutElementT> |
map(java.util.Spliterator<InElementT> fromSpliterator,
java.util.function.Function<? super InElementT,? extends OutElementT> function)
Returns a
Spliterator over the elements of fromSpliterator mapped by function. |
static <T> java.util.Spliterator<T> indexed(int size,
int extraCharacteristics,
java.util.function.IntFunction<T> function)
static <T> java.util.Spliterator<T> indexed(int size,
int extraCharacteristics,
java.util.function.IntFunction<T> function,
@CheckForNull
java.util.Comparator<? super T> comparator)
static <InElementT,OutElementT> java.util.Spliterator<OutElementT> map(java.util.Spliterator<InElementT> fromSpliterator,
java.util.function.Function<? super InElementT,? extends OutElementT> function)
Spliterator over the elements of fromSpliterator mapped by function.static <T> java.util.Spliterator<T> filter(java.util.Spliterator<T> fromSpliterator,
java.util.function.Predicate<? super T> predicate)
Spliterator filtered by the specified predicate.static <InElementT,OutElementT> java.util.Spliterator<OutElementT> flatMap(java.util.Spliterator<InElementT> fromSpliterator,
java.util.function.Function<? super InElementT,java.util.Spliterator<OutElementT>> function,
int topCharacteristics,
long topSize)
Spliterator that iterates over the elements of the spliterators generated by
applying function to the elements of fromSpliterator.static <InElementT> java.util.Spliterator.OfInt flatMapToInt(java.util.Spliterator<InElementT> fromSpliterator,
java.util.function.Function<? super InElementT,java.util.Spliterator.OfInt> function,
int topCharacteristics,
long topSize)
Spliterator.OfInt that iterates over the elements of the spliterators
generated by applying function to the elements of fromSpliterator. (If function returns null for an input, it is replaced with an empty stream.)static <InElementT> java.util.Spliterator.OfLong flatMapToLong(java.util.Spliterator<InElementT> fromSpliterator,
java.util.function.Function<? super InElementT,java.util.Spliterator.OfLong> function,
int topCharacteristics,
long topSize)
Spliterator.OfLong that iterates over the elements of the spliterators
generated by applying function to the elements of fromSpliterator. (If function returns null for an input, it is replaced with an empty stream.)static <InElementT> java.util.Spliterator.OfDouble flatMapToDouble(java.util.Spliterator<InElementT> fromSpliterator,
java.util.function.Function<? super InElementT,java.util.Spliterator.OfDouble> function,
int topCharacteristics,
long topSize)
Spliterator.OfDouble that iterates over the elements of the spliterators
generated by applying function to the elements of fromSpliterator. (If function returns null for an input, it is replaced with an empty stream.)