Class MapToIntOperation<I>
- java.lang.Object
-
- org.infinispan.stream.impl.intops.object.MapToIntOperation<I>
-
- Type Parameters:
I
- the type of the input stream
- All Implemented Interfaces:
IntermediateOperation<I,Stream<I>,Integer,IntStream>
,MappingOperation<I,Stream<I>,Integer,IntStream>
public class MapToIntOperation<I> extends Object implements MappingOperation<I,Stream<I>,Integer,IntStream>
Performs map to int operation on a regularStream
-
-
Constructor Summary
Constructors Constructor Description MapToIntOperation(ToIntFunction<? super I> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ToIntFunction<? super I>
getFunction()
IntStream
perform(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
-
MapToIntOperation
public MapToIntOperation(ToIntFunction<? super I> function)
-
-
Method Detail
-
perform
public IntStream perform(Stream<I> stream)
Description copied from interface:IntermediateOperation
Performs the actualy intermediate operation returning the resulting stream
-
getFunction
public ToIntFunction<? super I> getFunction()
-
-