Class PeekDoubleOperation
- java.lang.Object
-
- org.infinispan.stream.impl.intops.primitive.d.PeekDoubleOperation
-
- All Implemented Interfaces:
IntermediateOperation<Double,DoubleStream,Double,DoubleStream>
public class PeekDoubleOperation extends Object implements IntermediateOperation<Double,DoubleStream,Double,DoubleStream>
Performs peek operation on aDoubleStream
-
-
Constructor Summary
Constructors Constructor Description PeekDoubleOperation(DoubleConsumer consumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleConsumergetConsumer()voidhandleInjection(ComponentRegistry registry)Handles injection of components for various dependencies that the intermediate operation hasio.reactivex.rxjava3.core.Flowable<Double>mapFlowable(io.reactivex.rxjava3.core.Flowable<Double> input)Performs the intermediate operation on a Flowable.DoubleStreamperform(DoubleStream stream)Performs the actualy intermediate operation returning the resulting stream
-
-
-
Constructor Detail
-
PeekDoubleOperation
public PeekDoubleOperation(DoubleConsumer consumer)
-
-
Method Detail
-
perform
public DoubleStream perform(DoubleStream stream)
Description copied from interface:IntermediateOperationPerforms the actualy intermediate operation returning the resulting stream- Specified by:
performin interfaceIntermediateOperation<Double,DoubleStream,Double,DoubleStream>- Parameters:
stream- the stream to have the operation performed on- Returns:
- the resulting stream after the operation was applied
-
getConsumer
public DoubleConsumer getConsumer()
-
handleInjection
public void handleInjection(ComponentRegistry registry)
Description copied from interface:IntermediateOperationHandles injection of components for various dependencies that the intermediate operation has- Specified by:
handleInjectionin interfaceIntermediateOperation<Double,DoubleStream,Double,DoubleStream>- Parameters:
registry- the registry to use
-
mapFlowable
public io.reactivex.rxjava3.core.Flowable<Double> 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,Double,DoubleStream>- Parameters:
input- the input flowable- Returns:
-
-