| Package | Description |
|---|---|
| net.lecousin.framework.collections |
Implementations of collections.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
AsyncCollection.Aggregator<T>
Aggregates several AsyncCollection into a single one:
each time new elements come, the newElements method is called into the main collection,
then the done method is called on the main collection only after the done method
has been called nbSubCollection times.
|
static class |
AsyncCollection.Keep<T>
Implementation that keeps the elements in a list.
|
static class |
AsyncCollection.Listen<T>
Simple implementation with a listener on both operations: newElements and done.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AsyncCollection.Keep.provideTo(AsyncCollection<T> col)
Send the elements of this collection to the given collection.
|
| Constructor and Description |
|---|
Aggregator(int nbSubCollection,
AsyncCollection<T> mainCollection)
Constructor.
|
Copyright © 2019. All rights reserved.