public class MultiBindingBuilderImpl<T> extends java.lang.Object implements Binder.MultiBindingBuilder<T>, KeyBuilder<Binder.MultiBindingBuilder<T>,T>
| Constructor and Description |
|---|
MultiBindingBuilderImpl(BinderImpl binder,
TypeReference<T> key) |
| Modifier and Type | Method and Description |
|---|---|
Binder.CollectionMultiBindingBuilder<T> |
asCollection(java.lang.Class<?> baseType,
CollectionCreator collectionCreator)
Starts building a binding using the given collection creator
|
<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
|
Binder.MultiBindingBuilder<T> |
getReturnValue() |
Key<T> |
key() |
void |
setKey(Key<T> key) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasCollection, asList, asMap, asMap, asMap, asSetmarkedWith, named, qualifiedpublic MultiBindingBuilderImpl(BinderImpl binder, TypeReference<T> key)
public Binder.CollectionMultiBindingBuilder<T> asCollection(java.lang.Class<?> baseType, CollectionCreator collectionCreator)
asCollection in interface Binder.MultiBindingBuilder<T>baseType - The collection base typecollectionCreator - The collection factorypublic <K> Binder.MapMultiBindingBuilder<K,T> asMap(TypeReference<K> keyReference, MapCreator mapCreator)
Binder.MultiBindingBuilderasMap in interface Binder.MultiBindingBuilder<T>K - The key typekeyReference - The key type referencemapCreator - The map factorypublic Key<T> key()
key in interface KeyBuilder<Binder.MultiBindingBuilder<T>,T>public void setKey(Key<T> key)
setKey in interface KeyBuilder<Binder.MultiBindingBuilder<T>,T>public Binder.MultiBindingBuilder<T> getReturnValue()
getReturnValue in interface KeyBuilder<Binder.MultiBindingBuilder<T>,T>