public class ConcatNode<IN> extends Node<IN,IN>
ConcatNode
takes any number of OutputNode
s and emits the input values received
from them one after the other, without interleaving the values.Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList[] |
buffers |
protected boolean[] |
completed |
protected int |
mCompletedIndex |
protected java.util.HashMap<OutputNode,java.lang.Integer> |
sourceIndeces |
protected OutputNode<IN>[] |
sources |
protected int |
sourcesCount |
graph, inputNodes
Constructor and Description |
---|
ConcatNode(OutputNode<IN>... sources) |
Modifier and Type | Method and Description |
---|---|
void |
emitBufferedValuesFor(int index) |
void |
onCompleted(OutputNode<?> source)
Invoked when the specified source
OutputNode is completed. |
protected IN |
processInput(OutputNode<IN> source,
IN input)
Invoked by
InputNode.onInput(OutputNode, Object) when the given input Object
has been received from the OutputNode that emitted it. |
action, action, addInputNode, attach, begin, begin, beginTimer, beginTimer, buffer, completed, concat, concatStrings, count, createErrorMessage, detach, dispatchError, dispatchReset, distinct, doOnCompleted, doOnError, doOnInput, doOnReset, emitOutput, emitOutput, filter, first, first, getGraph, hasInputNodes, isErrorReceived, last, last, map, merge, nth, observer, observer, onAttached, onDetached, onError, onInput, onReset, removeInputNode, repeat, reverse, setErrorReceived, setGraph, skip, skipWhile, start, string, sum, take, timer, timer, toBoolean, toByte, toChar, toDouble, toFloat, toInt, toLong, toMain, toShort, toWorker, whenClicked, whenTextChanged
protected final java.util.ArrayList[] buffers
protected final boolean[] completed
protected final int sourcesCount
protected final java.util.HashMap<OutputNode,java.lang.Integer> sourceIndeces
protected final OutputNode<IN>[] sources
protected int mCompletedIndex
@SafeVarargs public ConcatNode(OutputNode<IN>... sources)
protected IN processInput(OutputNode<IN> source, IN input)
Node
InputNode.onInput(OutputNode, Object)
when the given input Object
has been received from the OutputNode
that emitted it.processInput
in class Node<IN,IN>
source
- An OutputNode
that emitted the input.input
- The input Object
.public void onCompleted(OutputNode<?> source)
InputNode
OutputNode
is completed.onCompleted
in interface InputNode<IN>
onCompleted
in class Node<IN,IN>
source
- The completed OutputNode
.public void emitBufferedValuesFor(int index)