Class FlatMapToDoubleOperation<I>
- java.lang.Object
-
- org.infinispan.stream.impl.intops.object.FlatMapToDoubleOperation<I>
-
- Type Parameters:
I
- the type of the input stream
- All Implemented Interfaces:
FlatMappingOperation<I,Stream<I>,Double,DoubleStream>
,IntermediateOperation<I,Stream<I>,Double,DoubleStream>
,MappingOperation<I,Stream<I>,Double,DoubleStream>
public class FlatMapToDoubleOperation<I> extends Object implements FlatMappingOperation<I,Stream<I>,Double,DoubleStream>
Performs flat map to double operation on a regularStream
-
-
Constructor Summary
Constructors Constructor Description FlatMapToDoubleOperation(Function<? super I,? extends DoubleStream> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Function<? super I,? extends DoubleStream>
getFunction()
Stream<DoubleStream>
map(Stream<I> iStream)
Instead of flat mapping this returns a stream ofFlatMappingOperation
.DoubleStream
perform(Stream<I> stream)
Performs the actualy intermediate operation returning the resulting stream-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.stream.impl.intops.IntermediateOperation
handleInjection
-
-
-
-
Constructor Detail
-
FlatMapToDoubleOperation
public FlatMapToDoubleOperation(Function<? super I,? extends DoubleStream> function)
-
-
Method Detail
-
perform
public DoubleStream perform(Stream<I> stream)
Description copied from interface:IntermediateOperation
Performs the actualy intermediate operation returning the resulting stream- Specified by:
perform
in interfaceIntermediateOperation<I,Stream<I>,Double,DoubleStream>
- Parameters:
stream
- the stream to have the operation performed on- Returns:
- the resulting stream after the operation was applied
-
getFunction
public Function<? super I,? extends DoubleStream> getFunction()
-
map
public Stream<DoubleStream> map(Stream<I> iStream)
Description copied from interface:FlatMappingOperation
Instead of flat mapping this returns a stream ofFlatMappingOperation
.- Specified by:
map
in interfaceFlatMappingOperation<I,Stream<I>,Double,DoubleStream>
- Parameters:
iStream
- the stream to convert- Returns:
- the stream of streams
-
-