public final class SetOfProducedProducer<T> extends AbstractProducer<Set<Produced<T>>>
Producer implementation used to implement Set bindings. This producer returns a
future Set<Produced<T>> 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<Produced<T>>> |
compute(ProducerMonitor unusedMonitor)
|
static <T> Producer<Set<T>> |
create() |
static <T> Producer<Set<Produced<T>>> |
create(Producer<Set<T>>... producers)
|
get@SafeVarargs public static <T> Producer<Set<Produced<T>>> create(Producer<Set<T>>... producers)
public com.google.common.util.concurrent.ListenableFuture<Set<Produced<T>>> compute(ProducerMonitor unusedMonitor)
Set of Produced values 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 that corresponding
Produced element will fail with a NullPointerException.
Canceling this future will attempt to cancel all of the component futures; but if any of the
delegate futures fail or are canceled, this future succeeds, with the appropriate failed
Produced.
compute in class AbstractProducer<Set<Produced<T>>>NullPointerException - if any of the delegate producers return nullCopyright © 2016 Google, Inc.. All Rights Reserved.