Class MapToObjLongOperation<R>
- java.lang.Object
-
- org.infinispan.stream.impl.intops.primitive.l.MapToObjLongOperation<R>
-
- All Implemented Interfaces:
IntermediateOperation<Long,LongStream,R,Stream<R>>
public class MapToObjLongOperation<R> extends Object implements IntermediateOperation<Long,LongStream,R,Stream<R>>
Performs map to object operation on aLongStream
-
-
Constructor Summary
Constructors Constructor Description MapToObjLongOperation(LongFunction<? extends R> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongFunction<? extends R>
getFunction()
Stream<R>
perform(LongStream 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
-
MapToObjLongOperation
public MapToObjLongOperation(LongFunction<? extends R> function)
-
-
Method Detail
-
perform
public Stream<R> perform(LongStream stream)
Description copied from interface:IntermediateOperation
Performs the actualy intermediate operation returning the resulting stream- Specified by:
perform
in interfaceIntermediateOperation<Long,LongStream,R,Stream<R>>
- Parameters:
stream
- the stream to have the operation performed on- Returns:
- the resulting stream after the operation was applied
-
getFunction
public LongFunction<? extends R> getFunction()
-
-