Package com.google.common.collect
Class CollectSpliterators.FlatMapSpliteratorOfPrimitive<InElementT,OutElementT,OutConsumerT,OutSpliteratorT extends Spliterator.OfPrimitive<OutElementT,OutConsumerT,OutSpliteratorT>>
java.lang.Object
com.google.common.collect.CollectSpliterators.FlatMapSpliterator<InElementT,OutElementT,OutSpliteratorT>
com.google.common.collect.CollectSpliterators.FlatMapSpliteratorOfPrimitive<InElementT,OutElementT,OutConsumerT,OutSpliteratorT>
- Type Parameters:
InElementT
- the element type of the input spliteratorOutElementT
- the (boxed) element type of the output spliteratorsOutConsumerT
- the specialized consumer type for the primitive output typeOutSpliteratorT
- the primitive spliterator type associated withOutElementT
- All Implemented Interfaces:
Spliterator<OutElementT>
,Spliterator.OfPrimitive<OutElementT,
OutConsumerT, OutSpliteratorT>
- Direct Known Subclasses:
CollectSpliterators.FlatMapSpliteratorOfDouble
,CollectSpliterators.FlatMapSpliteratorOfInt
,CollectSpliterators.FlatMapSpliteratorOfLong
- Enclosing class:
CollectSpliterators
abstract static class CollectSpliterators.FlatMapSpliteratorOfPrimitive<InElementT,OutElementT,OutConsumerT,OutSpliteratorT extends Spliterator.OfPrimitive<OutElementT,OutConsumerT,OutSpliteratorT>>
extends CollectSpliterators.FlatMapSpliterator<InElementT,OutElementT,OutSpliteratorT>
implements Spliterator.OfPrimitive<OutElementT,OutConsumerT,OutSpliteratorT>
Implementation of
with a primitive spliterator output type.
invalid reference
Stream#flatMap
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.CollectSpliterators.FlatMapSpliterator
CollectSpliterators.FlatMapSpliterator.Factory<InElementT,
OutSpliteratorT extends Spliterator<?>> Nested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,
T_CONS, T_SPLITR extends Spliterator.OfPrimitive<T, T_CONS, T_SPLITR>> -
Field Summary
Fields inherited from class com.google.common.collect.CollectSpliterators.FlatMapSpliterator
characteristics, estimatedSize, factory, from, function, prefix
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
Constructor Summary
ConstructorsConstructorDescriptionFlatMapSpliteratorOfPrimitive
(OutSpliteratorT prefix, Spliterator<InElementT> from, Function<? super InElementT, OutSpliteratorT> function, CollectSpliterators.FlatMapSpliterator.Factory<InElementT, OutSpliteratorT> factory, int characteristics, long estimatedSize) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
forEachRemaining
(OutConsumerT action) final boolean
tryAdvance
(OutConsumerT action) Methods inherited from class com.google.common.collect.CollectSpliterators.FlatMapSpliterator
characteristics, estimateSize, forEachRemaining, tryAdvance, trySplit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Spliterator
characteristics, estimateSize, forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics, tryAdvance
Methods inherited from interface java.util.Spliterator.OfPrimitive
trySplit
-
Constructor Details
-
FlatMapSpliteratorOfPrimitive
FlatMapSpliteratorOfPrimitive(@CheckForNull OutSpliteratorT prefix, Spliterator<InElementT> from, Function<? super InElementT, OutSpliteratorT> function, CollectSpliterators.FlatMapSpliterator.Factory<InElementT, OutSpliteratorT> factory, int characteristics, long estimatedSize)
-
-
Method Details
-
tryAdvance
- Specified by:
tryAdvance
in interfaceSpliterator.OfPrimitive<InElementT,
OutElementT, OutConsumerT>
-
forEachRemaining
- Specified by:
forEachRemaining
in interfaceSpliterator.OfPrimitive<InElementT,
OutElementT, OutConsumerT>
-