I
- the type of the input streampublic class MapToLongOperation<I> extends Object implements MappingOperation<I,Stream<I>,Long,LongStream>
Stream
Constructor and Description |
---|
MapToLongOperation(ToLongFunction<? super I> function) |
Modifier and Type | Method and Description |
---|---|
ToLongFunction<? super I> |
getFunction() |
io.reactivex.rxjava3.core.Flowable<Long> |
mapFlowable(io.reactivex.rxjava3.core.Flowable<I> input)
Performs the intermediate operation on a Flowable.
|
LongStream |
perform(Stream<I> stream)
Performs the actualy intermediate operation returning the resulting stream
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleInjection
public MapToLongOperation(ToLongFunction<? super I> function)
public LongStream perform(Stream<I> stream)
IntermediateOperation
perform
in interface IntermediateOperation<I,Stream<I>,Long,LongStream>
stream
- the stream to have the operation performed onpublic ToLongFunction<? super I> getFunction()
public io.reactivex.rxjava3.core.Flowable<Long> mapFlowable(io.reactivex.rxjava3.core.Flowable<I> input)
IntermediateOperation
mapFlowable
in interface IntermediateOperation<I,Stream<I>,Long,LongStream>
input
- the input flowableCopyright © 2021 JBoss by Red Hat. All rights reserved.