Home
last modified time | relevance | path

Searched refs:OptionalBinder (Results 1 – 6 of 6) sorted by relevance

/external/guice/core/src/com/google/inject/multibindings/
DOptionalBinder.java139 public class OptionalBinder<T> { class
142 public static <T> OptionalBinder<T> newOptionalBinder(Binder binder, Class<T> type) { in newOptionalBinder()
143 return new OptionalBinder<T>( in newOptionalBinder()
144 newRealOptionalBinder(binder.skipSources(OptionalBinder.class), Key.get(type))); in newOptionalBinder()
147 public static <T> OptionalBinder<T> newOptionalBinder(Binder binder, TypeLiteral<T> type) { in newOptionalBinder()
148 return new OptionalBinder<T>( in newOptionalBinder()
149 newRealOptionalBinder(binder.skipSources(OptionalBinder.class), Key.get(type))); in newOptionalBinder()
152 public static <T> OptionalBinder<T> newOptionalBinder(Binder binder, Key<T> type) { in newOptionalBinder()
153 return new OptionalBinder<T>( in newOptionalBinder()
154 newRealOptionalBinder(binder.skipSources(OptionalBinder.class), type)); in newOptionalBinder()
[all …]
/external/guice/core/test/com/google/inject/internal/
DOptionalBinderTest.java47 import com.google.inject.multibindings.OptionalBinder;
129 OptionalBinder.newOptionalBinder(binder(), String.class); in testTypeNotBoundByDefault()
156 OptionalBinder.newOptionalBinder(binder(), String.class); in testOptionalIsAbsentByDefault()
190 OptionalBinder.newOptionalBinder(binder(), String.class); in testUsesUserBoundValue()
232 OptionalBinder.newOptionalBinder(binder(), String.class); in testUsesUserBoundValueNullProvidersMakeAbsent()
286 OptionalBinder.newOptionalBinder(binder(), JitBinding.class); in testOptionalBinderDependsOnJitBinding()
302 OptionalBinder.newOptionalBinder(binder(), JitBinding.class); in testOptionalBinderDependsOnJitBinding()
331 OptionalBinder.newOptionalBinder(binder(), JitBinding.class); in testOptionalBinderDependsOnJitBinding()
348 OptionalBinder.newOptionalBinder(binder(), String.class).setDefault().toInstance("a"); in testSetDefault()
389 OptionalBinder.newOptionalBinder(binder(), String.class).setBinding().toInstance("a"); in testSetBinding()
[all …]
DMultibinderTest.java55 import com.google.inject.multibindings.OptionalBinder;
1324 OptionalBinder.newOptionalBinder(binder(), String.class) in testSetAndMapValueAreDistinct()
1327 OptionalBinder.newOptionalBinder(binder(), String.class) in testSetAndMapValueAreDistinct()
1351 OptionalBinder.newOptionalBinder(binder(), String.class) in testSetAndMapValueAreDistinctInSpi()
/external/guice/core/test/com/google/inject/
DNullableInjectionPointTest.java7 import com.google.inject.multibindings.OptionalBinder;
199 OptionalBinder.newOptionalBinder(binder(), Foo.class);
/external/google-java-format/core/src/test/resources/com/google/googlejavaformat/java/testdata/
DB20701054.input4 OptionalBinder.<ASD>newOptionalBinder(binder(), InputWhitelist.class).setBinding().to(
DB20701054.output4 OptionalBinder.<ASD>newOptionalBinder(binder(), InputWhitelist.class)