Class MapToObjIntOperation<R>

java.lang.Object
org.infinispan.stream.impl.intops.primitive.i.MapToObjIntOperation<R>
All Implemented Interfaces:
IntermediateOperation<Integer,IntStream,R,Stream<R>>, MappingOperation<Integer,IntStream,R,Stream<R>>

public class MapToObjIntOperation<R> extends Object implements MappingOperation<Integer,IntStream,R,Stream<R>>
Performs map to object operation on a IntStream
  • Constructor Details

    • MapToObjIntOperation

      public MapToObjIntOperation(IntFunction<? extends R> function)
  • Method Details

    • perform

      public Stream<R> perform(IntStream stream)
      Description copied from interface: IntermediateOperation
      Performs the actualy intermediate operation returning the resulting stream
      Specified by:
      perform in interface IntermediateOperation<Integer,IntStream,R,Stream<R>>
      Parameters:
      stream - the stream to have the operation performed on
      Returns:
      the resulting stream after the operation was applied
    • getFunction

      public IntFunction<? extends R> getFunction()
    • mapFlowable

      public io.reactivex.rxjava3.core.Flowable<R> mapFlowable(io.reactivex.rxjava3.core.Flowable<Integer> input)
      Description copied from interface: IntermediateOperation
      Performs the intermediate operation on a Flowable. This is an interop method to allow Distributed Streams to actually use Distributed Publisher
      Specified by:
      mapFlowable in interface IntermediateOperation<Integer,IntStream,R,Stream<R>>
      Parameters:
      input - the input flowable
      Returns: