public class FunctionNode<IN,OUT> extends Node<IN,OUT>
FunctionNode takes a Function to produce an output of value of the specified
type from the received input value of specified type.graph, inputNodes| Constructor and Description |
|---|
FunctionNode(Function<IN,OUT> function) |
| Modifier and Type | Method and Description |
|---|---|
protected OUT |
eval(IN input) |
protected OUT |
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, onCompleted, 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 OUT 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,OUT>source - An OutputNode that emitted the input.input - The input Object.