public class EmptyCollector<T> extends java.lang.Object implements LazyResultConsumer<T>
| Constructor and Description |
|---|
EmptyCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(java.util.concurrent.CompletableFuture<T> t) |
java.util.Collection<T> |
getResults() |
LazyResultConsumer<T> |
withResults(java.util.Collection<T> t)
Used to generate a new instance for result collection - populates the supplied Collection
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMaxActivepublic void accept(java.util.concurrent.CompletableFuture<T> t)
accept in interface java.util.function.Consumer<java.util.concurrent.CompletableFuture<T>>public LazyResultConsumer<T> withResults(java.util.Collection<T> t)
LazyResultConsumerwithResults in interface LazyResultConsumer<T>t - Collection to be populatedpublic java.util.Collection<T> getResults()
getResults in interface LazyResultConsumer<T>