com.apama.functional
Event Generator


Holds an action that generates an infinite series of values, one at a time.

Any event with an action generate() returns TYPE can be used as a generator in the functional library, but this event is used to provide the generators returned by Fn and Functional such as Fn.generator(). The return type can be anything.
Since:
10.15.3.0
See Also:
com.apama.functional.Fn.generator() - One way to create a generator from an existing function.
com.apama.functional.Fn.cycle() - An example of a built-in generator.
com.apama.functional.Functional - Note that the pre-defined generator actions on Fn are also available on the Functional event to allow fluent calling.

Action summary
 anygenerate()

Returns the next item from the generator.
 
Action detail

generate

any generate()
Returns the next item from the generator.
Returns:
The next item.