public static class ProviderInfoCollectionImpl.Builder extends Object implements ProviderInfoCollection.Builder
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.ImmutableMap.Builder<Provider.Key<?>,ProviderInfo<?>> |
mapBuilder |
| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
protected |
Builder(int expectedSize) |
| Modifier and Type | Method and Description |
|---|---|
ProviderInfoCollection |
build(DefaultInfo info)
Build the
ProviderInfoCollection. |
ProviderInfoCollection.Builder |
put(ProviderInfo<?> info)
Add a new
ProviderInfo to the collection. |
protected final com.google.common.collect.ImmutableMap.Builder<Provider.Key<?>,ProviderInfo<?>> mapBuilder
public ProviderInfoCollection.Builder put(ProviderInfo<?> info)
ProviderInfoCollection.BuilderProviderInfo to the collection. Multiple ProviderInfo objects with
the same Provider.Key should not be added.put in interface ProviderInfoCollection.Builderpublic ProviderInfoCollection build(DefaultInfo info)
ProviderInfoCollection.BuilderProviderInfoCollection. The DefaultInfo must be specified here.build in interface ProviderInfoCollection.Builder