public interface LazyFunction<T>
Flow
incrementally. Lazy functions allow calculations to be
deferred. They also support infinitely large Flows, where successive values are computed just as needed.Modifier and Type | Method and Description |
---|---|
LazyContinuation<T> |
next()
Calculates the next value for the function.
|
LazyContinuation<T> next()
Flow
with a function to compute the value after that as a LazyContinuation
. Alternately, a
LazyFunction can return null to indicate that it has returned all the values it can.5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.