java.lang.Object
org.bsc.async.AsyncGenerator.WithEmbed<E>
- Type Parameters:
E- the type of elements in the generator
- All Implemented Interfaces:
Iterable<E>,AsyncGenerator<E>,AsyncGenerator.HasResultValue,AsyncGeneratorOperators<E>
- Enclosing interface:
- AsyncGenerator<E>
public static class AsyncGenerator.WithEmbed<E>
extends Object
implements AsyncGenerator<E>, AsyncGenerator.HasResultValue
An asynchronous generator decorator that allows to generators composition embedding other generators.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bsc.async.AsyncGenerator
AsyncGenerator.Data<E>, AsyncGenerator.Embed<E>, AsyncGenerator.EmbedCompletionHandler, AsyncGenerator.HasResultValue, AsyncGenerator.WithEmbed<E>, AsyncGenerator.WithResult<E> -
Constructor Summary
ConstructorsConstructorDescriptionWithEmbed(AsyncGenerator<E> delegate) WithEmbed(AsyncGenerator<E> delegate, AsyncGenerator.EmbedCompletionHandler onGeneratorDoneWithResult) -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bsc.async.AsyncGenerator
async, iterator, stream, toCompletableFutureMethods inherited from interface org.bsc.async.AsyncGeneratorOperators
collectAsync, executor, filter, flatMap, forEachAsync, mapMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
WithEmbed
public WithEmbed(AsyncGenerator<E> delegate, AsyncGenerator.EmbedCompletionHandler onGeneratorDoneWithResult) -
WithEmbed
-
-
Method Details
-
resultValues
-
resultValue
- Specified by:
resultValuein interfaceAsyncGenerator.HasResultValue
-
next
Description copied from interface:AsyncGeneratorRetrieves the next asynchronous element.- Specified by:
nextin interfaceAsyncGenerator<E>- Specified by:
nextin interfaceAsyncGeneratorOperators<E>- Returns:
- the next element from the generator
-