public class ListNode<IN> extends Node<IN,IN>
ListNode either emits all the values from a given List (immutable version), or
the input values that are received and stored to a List until Node.onCompleted(OutputNode)
is invoked (mutable version).| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<IN> |
list |
protected boolean |
mutableList |
graph, inputNodes| Constructor and Description |
|---|
ListNode() |
ListNode(java.util.List<IN> list) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doOnReset()
Invoked by
InputNode.onCompleted(OutputNode). |
void |
emitOutput()
Invoked to emit the contents of this
ListNode. |
java.util.List<IN> |
getList() |
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, 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, whenTextChangedprotected java.util.ArrayList<IN> list
protected boolean mutableList
public ListNode()
public ListNode(java.util.List<IN> list)
public java.util.List<IN> getList()
protected IN processInput(OutputNode<IN> source, IN input)
NodeInputNode.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 emitOutput()
ListNode.emitOutput in interface OutputNode<IN>emitOutput in class Node<IN,IN>protected void doOnReset()
NodeInputNode.onCompleted(OutputNode). This method can be overridden
in subclasses for hooking on the reset events.public void onCompleted(OutputNode<?> source)
InputNodeOutputNode is completed.onCompleted in interface InputNode<IN>onCompleted in class Node<IN,IN>source - The completed OutputNode.