common.collect internals.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv abstract static class | CollectSpliterators.FlatMapSpliterator<
the element type of the input spliterator InElementT extends @Nullable Object, the element type of the output spliterators OutElementT extends @Nullable Object, the type of the output spliterators OutSpliteratorT extends SpliteratorImplements the |
| pack-priv static class | CollectSpliterators.FlatMapSpliteratorOfDouble<InElementT extends @Nullable Object>
Implementation of |
| pack-priv static class | CollectSpliterators.FlatMapSpliteratorOfInt<InElementT extends @Nullable Object>
Implementation of |
| pack-priv static class | CollectSpliterators.FlatMapSpliteratorOfLong<InElementT extends @Nullable Object>
Implementation of |
| pack-priv static class | CollectSpliterators.FlatMapSpliteratorOfObject<
the element type of the input spliterator InElementT extends @Nullable Object, the element type of the output spliterators OutElementT extends @Nullable Object>Implementation of |
| pack-priv abstract static class | CollectSpliterators.FlatMapSpliteratorOfPrimitive<
the element type of the input spliterator InElementT extends @Nullable Object, the (boxed) element type of the output spliterators OutElementT extends @Nullable Object, the specialized consumer type for the primitive output type OutConsumerT, the primitive spliterator type associated with OutSpliteratorT extends Spliterator.OutElementTImplementation of |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <T extends @Nullable Object> Spliterator | filter(Spliterator<T> fromSpliterator, Predicate<? super T> predicate)
Returns a |
| pack-priv static <InElementT extends @Nullable Object, OutElementT extends @Nullable Object> Spliterator | flatMap(Spliterator<InElementT> fromSpliterator, Function<? super InElementT, Spliterator<OutElementT>> function, int topCharacteristics, long topSize)
Returns a |
| pack-priv static <InElementT extends @Nullable Object> Spliterator. | flatMapToDouble(Spliterator<InElementT> fromSpliterator, Function<? super InElementT, Spliterator.
Returns a |
| pack-priv static <InElementT extends @Nullable Object> Spliterator. | flatMapToInt(Spliterator<InElementT> fromSpliterator, Function<? super InElementT, Spliterator.
Returns a |
| pack-priv static <InElementT extends @Nullable Object> Spliterator. | flatMapToLong(Spliterator<InElementT> fromSpliterator, Function<? super InElementT, Spliterator.
Returns a |
| pack-priv static <T extends @Nullable Object> Spliterator | |
| pack-priv static <T extends @Nullable Object> Spliterator | indexed(int size, int extraCharacteristics, IntFunction<T> function, Comparator<? super T> comparator)
|
| pack-priv static <InElementT extends @Nullable Object, OutElementT extends @Nullable Object> Spliterator | map(Spliterator<InElementT> fromSpliterator, Function<? super InElementT, ? extends OutElementT> function)
Returns a |
| CollectSpliterators | back to summary |
|---|---|
| private CollectSpliterators() | |
| filter | back to summary |
|---|---|
| pack-priv static <T extends @Nullable Object> Spliterator Returns a | |
| flatMap | back to summary |
|---|---|
| pack-priv static <InElementT extends @Nullable Object, OutElementT extends @Nullable Object> Spliterator Returns a | |
| flatMapToDouble | back to summary |
|---|---|
| pack-priv static <InElementT extends @Nullable Object> Spliterator. Returns a | |
| flatMapToInt | back to summary |
|---|---|
| pack-priv static <InElementT extends @Nullable Object> Spliterator. Returns a | |
| flatMapToLong | back to summary |
|---|---|
| pack-priv static <InElementT extends @Nullable Object> Spliterator. Returns a | |
| indexed | back to summary |
|---|---|
| pack-priv static <T extends @Nullable Object> Spliterator | |
| indexed | back to summary |
|---|---|
| pack-priv static <T extends @Nullable Object> Spliterator | |
| map | back to summary |
|---|---|
| pack-priv static <InElementT extends @Nullable Object, OutElementT extends @Nullable Object> Spliterator Returns a | |
Stream#flatMap operation on spliterators.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface | CollectSpliterators.FlatMapSpliterator.Factory<InElementT extends @Nullable Object, OutSpliteratorT extends Spliterator
Factory for constructing |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv long | |
| pack-priv final CollectSpliterators. | |
| pack-priv final Spliterator | |
| pack-priv final Function | |
| pack-priv OutSpliteratorT |
| Access | Constructor and Description |
|---|---|
| pack-priv | FlatMapSpliterator(OutSpliteratorT prefix, Spliterator<InElementT> from, Function<? super InElementT, OutSpliteratorT> function, CollectSpliterators.
|
| Modifier and Type | Method and Description |
|---|---|
| public final int | characteristics()
Implements java. |
| public final long | estimateSize()
Implements java. forEachRemaining traversal, or returns Long#MAX_VALUE if infinite, unknown, or too expensive to compute.
|
| public final void | forEachRemaining(Consumer<? super OutElementT>
The action action)Overrides default java. |
| public final boolean | tryAdvance(Consumer<? super OutElementT>
The action whose operation is performed at-most once action)Implements java. true; else returns false.
|
| public final OutSpliteratorT | trySplit()
Implements java. |
| characteristics | back to summary |
|---|---|
| pack-priv int characteristics | |
| estimatedSize | back to summary |
|---|---|
| pack-priv long estimatedSize | |
| factory | back to summary |
|---|---|
| pack-priv final CollectSpliterators. | |
| from | back to summary |
|---|---|
| pack-priv final Spliterator<InElementT> from | |
| function | back to summary |
|---|---|
| pack-priv final Function<? super InElementT, OutSpliteratorT> function | |
| prefix | back to summary |
|---|---|
| pack-priv OutSpliteratorT prefix
| |
| FlatMapSpliterator | back to summary |
|---|---|
| pack-priv FlatMapSpliterator(OutSpliteratorT prefix, Spliterator<InElementT> from, Function<? super InElementT, OutSpliteratorT> function, CollectSpliterators. | |
| characteristics | back to summary |
|---|---|
| public final int characteristics() Implements java. Doc from java. Returns a set of characteristics of this Spliterator and its
elements. The result is represented as ORed values from If a Spliterator reports an inconsistent set of characteristics (either those returned from a single invocation or across multiple invocations), no guarantees can be made about any computation using this Spliterator.
| |
| estimateSize | back to summary |
|---|---|
| public final long estimateSize() Implements java. Doc from java. Returns an estimate of the number of elements that would be
encountered by a If this Spliterator is
| |
| forEachRemaining | back to summary |
|---|---|
| public final void forEachRemaining(Consumer<? super OutElementT> action) Overrides default java. Doc from java. Performs the given action for each remaining element, sequentially in
the current thread, until all elements have been processed or the action
throws an exception. If this Spliterator is Subsequent behavior of a spliterator is unspecified if the action throws an exception. | |
| tryAdvance | back to summary |
|---|---|
| public final boolean tryAdvance(Consumer<? super OutElementT> action) Implements java. Doc from java. If a remaining element exists: performs the given action on it,
returning Subsequent behavior of a spliterator is unspecified if the action throws an exception. | |
| trySplit | back to summary |
|---|---|
| public final OutSpliteratorT trySplit() Implements java. Doc from java. If this spliterator can be partitioned, returns a Spliterator covering elements, that will, upon return from this method, not be covered by this Spliterator. If this Spliterator is Unless this Spliterator covers an infinite number of elements,
repeated calls to
This method may return
| |
FlatMapSpliterator instances.
| Modifier and Type | Method and Description |
|---|---|
| public OutSpliteratorT | newFlatMapSpliterator(OutSpliteratorT prefix, Spliterator<InElementT> fromSplit, Function<? super InElementT, OutSpliteratorT> function, int splitCharacteristics, long estSplitSize)
|
| newFlatMapSpliterator | back to summary |
|---|---|
| public OutSpliteratorT newFlatMapSpliterator(OutSpliteratorT prefix, Spliterator<InElementT> fromSplit, Function<? super InElementT, OutSpliteratorT> function, int splitCharacteristics, long estSplitSize) | |
flatMapToDouble.
| Access | Constructor and Description |
|---|---|
| pack-priv | FlatMapSpliteratorOfDouble(Spliterator.
|
| FlatMapSpliteratorOfDouble | back to summary |
|---|---|
| pack-priv FlatMapSpliteratorOfDouble(Spliterator. | |
flatMapToInt.
| Access | Constructor and Description |
|---|---|
| pack-priv | FlatMapSpliteratorOfInt(Spliterator.
|
| FlatMapSpliteratorOfInt | back to summary |
|---|---|
| pack-priv FlatMapSpliteratorOfInt(Spliterator. | |
flatMapToLong.
| Access | Constructor and Description |
|---|---|
| pack-priv | FlatMapSpliteratorOfLong(Spliterator.
|
| FlatMapSpliteratorOfLong | back to summary |
|---|---|
| pack-priv FlatMapSpliteratorOfLong(Spliterator. | |
Stream#flatMap with an object spliterator output type.
To avoid having this type, we could use FlatMapSpliterator directly. The main
advantages to having the type are the ability to use its constructor reference below and the
parallelism with the primitive version. In short, it makes its caller (flatMap)
simpler.
| Access | Constructor and Description |
|---|---|
| pack-priv | FlatMapSpliteratorOfObject(Spliterator<OutElementT> prefix, Spliterator<InElementT> from, Function<? super InElementT, Spliterator<OutElementT>> function, int characteristics, long estimatedSize)
|
| FlatMapSpliteratorOfObject | back to summary |
|---|---|
| pack-priv FlatMapSpliteratorOfObject(Spliterator<OutElementT> prefix, Spliterator<InElementT> from, Function<? super InElementT, Spliterator<OutElementT>> function, int characteristics, long estimatedSize) | |
OutElementT
Stream#flatMap with a primitive spliterator output type.
| Access | Constructor and Description |
|---|---|
| pack-priv | FlatMapSpliteratorOfPrimitive(OutSpliteratorT prefix, Spliterator<InElementT> from, Function<? super InElementT, OutSpliteratorT> function, CollectSpliterators.
|
| Modifier and Type | Method and Description |
|---|---|
| public final void | forEachRemaining(OutConsumerT
The action action)Overrides default java. |
| public final boolean | tryAdvance(OutConsumerT
The action action)Implements java. true; else returns false.
|
| FlatMapSpliteratorOfPrimitive | back to summary |
|---|---|
| pack-priv FlatMapSpliteratorOfPrimitive(OutSpliteratorT prefix, Spliterator<InElementT> from, Function<? super InElementT, OutSpliteratorT> function, CollectSpliterators. | |
| forEachRemaining | back to summary |
|---|---|
| public final void forEachRemaining(OutConsumerT action) Overrides default java. Doc from java. Performs the given action for each remaining element, sequentially in
the current thread, until all elements have been processed or the
action throws an exception. If this Spliterator is Subsequent behavior of a spliterator is unspecified if the action throws an exception.
| |
| tryAdvance | back to summary |
|---|---|
| public final boolean tryAdvance(OutConsumerT action) Implements java. Doc from java. If a remaining element exists, performs the given action on it,
returning Subsequent behavior of a spliterator is unspecified if the action throws an exception.
| |