T
- public class EmptyCollector<T> extends java.lang.Object implements LazyResultConsumer<T>
Modifier and Type | Method and Description |
---|---|
void |
accept(FastFuture<T> t) |
void |
add(FastFuture<T> t) |
void |
block(java.util.function.Function<FastFuture<T>,T> safeJoin) |
java.util.Collection<FastFuture<T>> |
getAllResults() |
java.util.Collection<FastFuture<T>> |
getResults() |
boolean |
hasCapacity(int i) |
EmptyCollector<T> |
withResults(java.util.Collection<FastFuture<T>> t)
Used to generate a new instance for result collection - populates the supplied Collection
|
public void accept(FastFuture<T> t)
accept
in interface java.util.function.Consumer<FastFuture<T>>
public void add(FastFuture<T> t)
public EmptyCollector<T> withResults(java.util.Collection<FastFuture<T>> t)
LazyResultConsumer
withResults
in interface LazyResultConsumer<T>
t
- Collection to be populatedpublic void block(java.util.function.Function<FastFuture<T>,T> safeJoin)
block
in interface LazyResultConsumer<T>
public java.util.Collection<FastFuture<T>> getResults()
getResults
in interface LazyResultConsumer<T>
public java.util.Collection<FastFuture<T>> getAllResults()
getAllResults
in interface LazyResultConsumer<T>
public boolean hasCapacity(int i)