public final class SetProducer<T> extends AbstractProducer<Set<T>>
Producer implementation used to implement Set bindings. This producer returns
a future Set whose elements are populated by subsequent calls to the delegate
Producer.get() methods.| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<Set<T>> |
compute()
Returns a future
Set whose iteration order is that of the elements given by each of the
producers, which are invoked in the order given at creation. |
static <T> Producer<Set<T>> |
create(Producer<Set<T>>... producers)
|
getpublic com.google.common.util.concurrent.ListenableFuture<Set<T>> compute()
Set whose iteration order is that of the elements given by each of the
producers, which are invoked in the order given at creation.
If any of the delegate sets, or any elements therein, are null, then this future will fail with a NullPointerException.
Canceling this future will attempt to cancel all of the component futures, and if any of the delegate futures fails or is canceled, this one is, too.
compute in class AbstractProducer<Set<T>>NullPointerException - if any of the delegate producers return nullCopyright © 2015 Google, Inc.. All Rights Reserved.