Home
last modified time | relevance | path

Searched refs:javaOptionalKey (Results 1 – 2 of 2) sorted by relevance

/external/guice/core/test/com/google/inject/internal/
DSpiUtils.java816 Key<?> javaOptionalKey = in optionalInjectorTest() local
831 javaOptionalBinding = injector.getBinding(javaOptionalKey); in optionalInjectorTest()
835 assertEquals(javaOptionalKey, javaOptionalBinder.getKey()); in optionalInjectorTest()
947 } else if (b.getKey().equals(javaOptionalKey)) { in optionalInjectorTest()
1006 Key<?> javaOptionalKey = in optionalModuleTest() local
1021 Binding javaOptionalBinding = indexed.get(javaOptionalKey); in optionalModuleTest()
1105 } else if (key != null && key.equals(javaOptionalKey)) { in optionalModuleTest()
/external/guice/core/src/com/google/inject/internal/
DRealOptionalBinder.java288 Key<?> javaOptionalKey = key.ofType(javaOptionalOf(typeLiteral)); in bindJava8Optional() local
290 .bind(javaOptionalKey) in bindJava8Optional()
291 .toProvider(new JavaOptionalProvider(bindingSelection, javaOptionalKey)); in bindJava8Optional()