Package com.google.mu.util.stream
Class BiIteration<L,R>
java.lang.Object
com.google.mu.util.stream.BiIteration<L,R>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal BiIteration
<L, R> Generates the pair ofleft
andright
to the resultBiStream
.iterate()
Starts iteration over theyielded
pairs.final BiIteration
<L, R> yield
(Iteration.Continuation continuation) Yields to the resultBiStream
a recursive iteration or lazy side-effect wrapped incontinuation
.final BiIteration
<L, R> Deprecated.
-
Constructor Details
-
BiIteration
public BiIteration()
-
-
Method Details
-
generate
Generates the pair ofleft
andright
to the resultBiStream
.- Since:
- 8.1
-
yield
Deprecated.usegenerate(L, R)
instead.Yields the pair ofleft
andright
to the resultBiStream
. -
yield
Yields to the resultBiStream
a recursive iteration or lazy side-effect wrapped incontinuation
. -
iterate
Starts iteration over theyielded
pairs.Because a
BiIteration
instance is stateful and mutable,iterate()
can be called at most once per instance.- Throws:
IllegalStateException
- ifiterate()
has already been called.- Since:
- 4.5
-
generate(L, R)
instead.