Code Examples
A repository of 155 code examples for BeepBeep
|
Use the FunctionProcessor to apply a function to each input event. More...
Static Public Member Functions | |
static void | main (String[] args) |
Use the FunctionProcessor to apply a function to each input event.
Here, we apply the negation to every Boolean event. This can be represented grahpically as follows:
For an input stream with the values false
, true
, true
, false
, true
, the expected output should be:
The event is: true The event is: false The event is: false The event is: true The event is: false
Definition at line 45 of file SimpleFunction.java.