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
Stream#flatMap with a primitive spliterator output type.-
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 extends Object,T_CONS extends Object, 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, prefixFields 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 voidforEachRemaining(OutConsumerT action) final booleantryAdvance(OutConsumerT action) Methods inherited from class com.google.common.collect.CollectSpliterators.FlatMapSpliterator
characteristics, estimateSize, forEachRemaining, tryAdvance, trySplitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Spliterator
characteristics, estimateSize, forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics, tryAdvanceMethods 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:
tryAdvancein interfaceSpliterator.OfPrimitive<InElementT,OutElementT, OutConsumerT>
-
forEachRemaining
- Specified by:
forEachRemainingin interfaceSpliterator.OfPrimitive<InElementT,OutElementT, OutConsumerT>
-