- Type Parameters:
T
- the value type.
- All Implemented Interfaces:
Flow.Processor<List<T>,
,T> Flow.Publisher<T>
,Flow.Subscriber<List<T>>
The processor emits the elements in the received lists individually. It uses a shared thread.
- Since:
- 3.0
- Author:
- Werner Donné
-
Field Summary
Fields inherited from class net.pincette.rs.ProcessorBase
subscriber, subscription
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
R> Flow.Processor<T, R> flatMapList
(Function<T, List<R>> function) Returns a processor that emits the elements from the generated list individually.static <T> Flow.Processor<List<T>,
T> Returns a processor that emits the elements in the received lists individually.protected boolean
onNextAction
(List<T> list) TheonNext
method uses this method.Methods inherited from class net.pincette.rs.Buffered
addValues, dispatch, emit, emit, getRequested, isCompleted, last, onComplete, onError, onNext, onSubscribe
-
Constructor Details
-
FlattenList
public FlattenList()
-
-
Method Details
-
flatMapList
Returns a processor that emits the elements from the generated list individually.- Type Parameters:
T
- the value type.- Parameters:
function
- the function that generates the list.- Returns:
- The processor
-
flattenList
Returns a processor that emits the elements in the received lists individually.- Type Parameters:
T
- the value type.- Returns:
- The processor.
-
onNextAction
Description copied from class:Buffered
TheonNext
method uses this method.- Specified by:
onNextAction
in classBuffered<List<T>,
T> - Parameters:
list
- the received value.
-