Package com.google.inject.internal
Class RealMapBinder.MultimapBinder<K,V>
- java.lang.Object
-
- com.google.inject.internal.RealMapBinder.MultimapBinder<K,V>
-
- All Implemented Interfaces:
Module
- Enclosing class:
- RealMapBinder<K,V>
private static final class RealMapBinder.MultimapBinder<K,V> extends java.lang.Object implements Module
BindsMap<K, Set<V>>
and {Map<K, Set<Provider<V>>>
.This will only exist if permitDuplicates() is called.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
RealMapBinder.MultimapBinder.RealMultimapProvider<K,V>
private static class
RealMapBinder.MultimapBinder.RealProviderMultimapProvider<K,V>
-
Field Summary
Fields Modifier and Type Field Description private RealMapBinder.BindingSelection<K,V>
bindingSelection
-
Constructor Summary
Constructors Modifier Constructor Description private
MultimapBinder(RealMapBinder.BindingSelection<K,V> bindingSelection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Binder binder)
Contributes bindings and other configurations for this module tobinder
.boolean
equals(java.lang.Object o)
int
hashCode()
-
-
-
Field Detail
-
bindingSelection
private final RealMapBinder.BindingSelection<K,V> bindingSelection
-
-
Constructor Detail
-
MultimapBinder
private MultimapBinder(RealMapBinder.BindingSelection<K,V> bindingSelection)
-
-
Method Detail
-
configure
public void configure(Binder binder)
Description copied from interface:Module
Contributes bindings and other configurations for this module tobinder
.Do not invoke this method directly to install submodules. Instead use
Binder.install(Module)
, which ensures thatprovider methods
are discovered.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-