Class MapToIntDoubleOperation
- java.lang.Object
-
- org.infinispan.stream.impl.intops.primitive.d.MapToIntDoubleOperation
-
- All Implemented Interfaces:
IntermediateOperation<Double,DoubleStream,Integer,IntStream>,MappingOperation<Double,DoubleStream,Integer,IntStream>
public class MapToIntDoubleOperation extends Object implements MappingOperation<Double,DoubleStream,Integer,IntStream>
Performs map to int operation on aDoubleStream
-
-
Constructor Summary
Constructors Constructor Description MapToIntDoubleOperation(DoubleToIntFunction function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleToIntFunctiongetFunction()io.reactivex.rxjava3.core.Flowable<Integer>mapFlowable(io.reactivex.rxjava3.core.Flowable<Double> input)Performs the intermediate operation on a Flowable.IntStreamperform(DoubleStream 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
-
MapToIntDoubleOperation
public MapToIntDoubleOperation(DoubleToIntFunction function)
-
-
Method Detail
-
perform
public IntStream perform(DoubleStream stream)
Description copied from interface:IntermediateOperationPerforms the actualy intermediate operation returning the resulting stream- Specified by:
performin interfaceIntermediateOperation<Double,DoubleStream,Integer,IntStream>- Parameters:
stream- the stream to have the operation performed on- Returns:
- the resulting stream after the operation was applied
-
getFunction
public DoubleToIntFunction getFunction()
-
mapFlowable
public io.reactivex.rxjava3.core.Flowable<Integer> mapFlowable(io.reactivex.rxjava3.core.Flowable<Double> input)
Description copied from interface:IntermediateOperationPerforms the intermediate operation on a Flowable. This is an interop method to allow Distributed Streams to actually use Distributed Publisher- Specified by:
mapFlowablein interfaceIntermediateOperation<Double,DoubleStream,Integer,IntStream>- Parameters:
input- the input flowable- Returns:
-
-