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(ProducerMonitor unusedMonitor)
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() |
static <T> Producer<Set<T>> |
create(Producer<Set<T>>... producers)
|
static <T> Producer<Set<T>> |
create(Producer<Set<T>> producer)
Returns the supplied producer.
|
getpublic static <T> Producer<Set<T>> create(Producer<Set<T>> producer)
@SafeVarargs public static <T> Producer<Set<T>> create(Producer<Set<T>>... producers)
public com.google.common.util.concurrent.ListenableFuture<Set<T>> compute(ProducerMonitor unusedMonitor)
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 © 2016 Google, Inc.. All Rights Reserved.