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