public class FilterNode<IN> extends Node<IN,IN>
FilterNode filters the received input values as specified by the assigned
BooleanFunction.graph, inputNodes| Constructor and Description |
|---|
FilterNode() |
FilterNode(BooleanFunction<IN> condition) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accepts(IN input)
Override this method to implement a condition for filtering.
|
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. |
void |
setCondition(BooleanFunction condition) |
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, whenTextChangedpublic FilterNode()
public FilterNode(BooleanFunction<IN> condition)
public void setCondition(BooleanFunction condition)
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.protected boolean accepts(IN input)
input - boolean value.