Class MapToDoubleOperation<I>
- java.lang.Object
-
- org.infinispan.stream.impl.intops.object.MapToDoubleOperation<I>
-
- Type Parameters:
I- the type of the input stream
- All Implemented Interfaces:
IntermediateOperation<I,Stream<I>,Double,DoubleStream>,MappingOperation<I,Stream<I>,Double,DoubleStream>
public class MapToDoubleOperation<I> extends Object implements MappingOperation<I,Stream<I>,Double,DoubleStream>
Performs map to double operation on a regularStream
-
-
Constructor Summary
Constructors Constructor Description MapToDoubleOperation(ToDoubleFunction<? super I> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ToDoubleFunction<? super I>getFunction()io.reactivex.rxjava3.core.Flowable<Double>mapFlowable(io.reactivex.rxjava3.core.Flowable<I> input)Performs the intermediate operation on a Flowable.DoubleStreamperform(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
-
MapToDoubleOperation
public MapToDoubleOperation(ToDoubleFunction<? super I> function)
-
-
Method Detail
-
perform
public DoubleStream perform(Stream<I> stream)
Description copied from interface:IntermediateOperationPerforms the actualy intermediate operation returning the resulting stream- Specified by:
performin 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 ToDoubleFunction<? super I> getFunction()
-
mapFlowable
public io.reactivex.rxjava3.core.Flowable<Double> mapFlowable(io.reactivex.rxjava3.core.Flowable<I> 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<I,Stream<I>,Double,DoubleStream>- Parameters:
input- the input flowable- Returns:
-
-