T - The element key being boundpublic static interface Binder.MultiBindingBuilder<T> extends Binder.Qualified<Binder.MultiBindingBuilder<T>>
| Modifier and Type | Method and Description |
|---|---|
Binder.CollectionMultiBindingBuilder<T> |
asCollection(java.lang.Class<?> baseType,
CollectionCreator collectionCreator)
Starts linking and scoping the element type using the collection creator returned instances
|
default Binder.CollectionMultiBindingBuilder<T> |
asCollection(CollectionCreator collectionCreator)
Starts linking and scoping the element type using the collection creator returned instances
|
default Binder.CollectionMultiBindingBuilder<T> |
asList()
Starts linking and scoping the element type as a List
|
default <K> Binder.MapMultiBindingBuilder<K,T> |
asMap(java.lang.Class<K> keyClass)
Starts linking and scoping the element type as a Map with the specified key type
|
default <K> Binder.MapMultiBindingBuilder<K,T> |
asMap(java.lang.Class<K> keyClass,
MapCreator mapCreator)
Starts linking and scoping the element type as a Map with the specified key type and map creator
|
default <K> Binder.MapMultiBindingBuilder<K,T> |
asMap(TypeReference<K> keyReference)
Starts linking and scoping the element type as a Map with the specified key type
|
<K> Binder.MapMultiBindingBuilder<K,T> |
asMap(TypeReference<K> keyReference,
MapCreator mapCreator)
Starts linking and scoping the element type as a Map with the specified key type and map creator
|
default Binder.CollectionMultiBindingBuilder<T> |
asSet()
Starts linking and scoping the element type as a Set
|
markedWith, named, qualifieddefault Binder.CollectionMultiBindingBuilder<T> asSet()
default Binder.CollectionMultiBindingBuilder<T> asList()
default Binder.CollectionMultiBindingBuilder<T> asCollection(CollectionCreator collectionCreator)
collectionCreator - The collection factoryBinder.CollectionMultiBindingBuilder<T> asCollection(java.lang.Class<?> baseType, CollectionCreator collectionCreator)
baseType - The collection base typecollectionCreator - The collection factorydefault <K> Binder.MapMultiBindingBuilder<K,T> asMap(java.lang.Class<K> keyClass)
K - The key typekeyClass - The key classdefault <K> Binder.MapMultiBindingBuilder<K,T> asMap(java.lang.Class<K> keyClass, MapCreator mapCreator)
K - The key typekeyClass - The key classmapCreator - The map factorydefault <K> Binder.MapMultiBindingBuilder<K,T> asMap(TypeReference<K> keyReference)
K - The key typekeyReference - The key type reference<K> Binder.MapMultiBindingBuilder<K,T> asMap(TypeReference<K> keyReference, MapCreator mapCreator)
K - The key typekeyReference - The key type referencemapCreator - The map factory