Interface Iteration.Continuation
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Encapsulates recursive iteration or a lazy block of code with side-effect.
Note that if after a lazy recursive call, the subsequent code
expects state change (for example, the nodes being visited will keep changing during graph
traversal), the subsequent code also needs to be lazy to be able to observe the expected state
change.
- Since:
- 4.4
-
Method Summary
-
Method Details
-
run
void run()Runs the continuation. It will be called at most once throughout the stream.
-