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.Builder
ProviderInfo
to the collection. Multiple ProviderInfo
objects with
the same Provider.Key
should not be added.put
in interface ProviderInfoCollection.Builder
public ProviderInfoCollection build(DefaultInfo info)
ProviderInfoCollection.Builder
ProviderInfoCollection
. The DefaultInfo
must be specified here.build
in interface ProviderInfoCollection.Builder