Package com.google.common.collect
Class CollectSpliterators.FlatMapSpliteratorOfPrimitive<InElementT,OutElementT,OutConsumerT,OutSpliteratorT extends java.util.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:
java.util.Spliterator<OutElementT>
,java.util.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 java.util.Spliterator.OfPrimitive<OutElementT,OutConsumerT,OutSpliteratorT>> extends CollectSpliterators.FlatMapSpliterator<InElementT,OutElementT,OutSpliteratorT> implements java.util.Spliterator.OfPrimitive<OutElementT,OutConsumerT,OutSpliteratorT>
Implementation ofStream#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 java.util.Spliterator<?>>
-
Nested classes/interfaces inherited from interface java.util.Spliterator
java.util.Spliterator.OfDouble, java.util.Spliterator.OfInt, java.util.Spliterator.OfLong, java.util.Spliterator.OfPrimitive<T extends java.lang.Object,T_CONS extends java.lang.Object,T_SPLITR extends java.util.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
-
-
Constructor Summary
Constructors Constructor Description FlatMapSpliteratorOfPrimitive(OutSpliteratorT prefix, java.util.Spliterator<InElementT> from, java.util.function.Function<? super InElementT,OutSpliteratorT> function, CollectSpliterators.FlatMapSpliterator.Factory<InElementT,OutSpliteratorT> factory, int characteristics, long estimatedSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forEachRemaining(OutConsumerT action)
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
-
-
-
-
Constructor Detail
-
FlatMapSpliteratorOfPrimitive
FlatMapSpliteratorOfPrimitive(OutSpliteratorT prefix, java.util.Spliterator<InElementT> from, java.util.function.Function<? super InElementT,OutSpliteratorT> function, CollectSpliterators.FlatMapSpliterator.Factory<InElementT,OutSpliteratorT> factory, int characteristics, long estimatedSize)
-
-
Method Detail
-
tryAdvance
public final boolean tryAdvance(OutConsumerT action)
- Specified by:
tryAdvance
in interfacejava.util.Spliterator.OfPrimitive<InElementT,OutElementT,OutConsumerT>
-
forEachRemaining
public final void forEachRemaining(OutConsumerT action)
- Specified by:
forEachRemaining
in interfacejava.util.Spliterator.OfPrimitive<InElementT,OutElementT,OutConsumerT>
-
-