Home
last modified time | relevance | path

Searched refs:newOptionalBinder (Results 1 – 3 of 3) sorted by relevance

/external/guice/extensions/multibindings/test/com/google/inject/multibindings/
DOptionalBinderTest.java125 OptionalBinder.newOptionalBinder(binder(), String.class); in testTypeNotBoundByDefault()
149 OptionalBinder.newOptionalBinder(binder(), String.class); in testOptionalIsAbsentByDefault()
181 OptionalBinder.newOptionalBinder(binder(), String.class); in testUsesUserBoundValue()
222 OptionalBinder.newOptionalBinder(binder(), String.class).setDefault().toInstance("a"); in testSetDefault()
261 OptionalBinder.newOptionalBinder(binder(), String.class).setBinding().toInstance("a"); in testSetBinding()
301 OptionalBinder.newOptionalBinder(binder(), String.class); in testSetBindingOverridesDefault()
348 OptionalBinder.newOptionalBinder(binder(), String.class); in testSpreadAcrossModules()
353 OptionalBinder.newOptionalBinder(binder(), String.class).setDefault().toInstance("a"); in testSpreadAcrossModules()
358 OptionalBinder.newOptionalBinder(binder(), String.class).setBinding().toInstance("b"); in testSpreadAcrossModules()
404 OptionalBinder.newOptionalBinder(binder(), String.class).setDefault() in testExactSameBindingCollapses_defaults()
[all …]
DMultibinderTest.java1072 OptionalBinder.newOptionalBinder(binder(), String.class) in testSetAndMapValueAreDistinct()
1074 OptionalBinder.newOptionalBinder(binder(), String.class) in testSetAndMapValueAreDistinct()
1094 OptionalBinder.newOptionalBinder(binder(), String.class) in testSetAndMapValueAreDistinctInSpi()
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/
DOptionalBinder.java194 public static <T> OptionalBinder<T> newOptionalBinder(Binder binder, Class<T> type) { in newOptionalBinder() method in OptionalBinder
198 public static <T> OptionalBinder<T> newOptionalBinder(Binder binder, TypeLiteral<T> type) { in newOptionalBinder() method in OptionalBinder
202 public static <T> OptionalBinder<T> newOptionalBinder(Binder binder, Key<T> type) { in newOptionalBinder() method in OptionalBinder