private static class RealMultibinder.PermitDuplicatesModule extends AbstractModule
This is like setting a global variable in the injector so that each instance of the multibinder will have the same value for permitDuplicates, even if it is only set on one of them.
Constructor and Description |
---|
PermitDuplicatesModule(Key<java.lang.Boolean> key) |
Modifier and Type | Method and Description |
---|---|
protected void |
configure()
Configures a
Binder via the exposed methods. |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
private final Key<java.lang.Boolean> key
PermitDuplicatesModule(Key<java.lang.Boolean> key)
protected void configure()
AbstractModule
Binder
via the exposed methods.configure
in class AbstractModule
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object