Home
last modified time | relevance | path

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

/external/guice/extensions/multibindings/src/com/google/inject/multibindings/
DOptionalBinder.java305 private final Key javaOptionalKey; field in OptionalBinder.RealOptionalBinder
339 this.javaOptionalKey = typeKey.ofType(javaOptionalOf(literal)); in RealOptionalBinder()
343 this.javaOptionalKey = null; in RealOptionalBinder()
397 binder.bind(javaOptionalKey).toProvider(new JavaOptionalProvider()); in bindJava8Optional()
455 return javaOptionalKey; in getKey()
649 return elementKey.equals(javaOptionalKey) in matchesJ8Keys()
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/
DSpiUtils.java663 Key<?> javaOptionalKey = HAS_JAVA_OPTIONAL ? in optionalInjectorTest() local
676 javaOptionalBinding = injector.getBinding(javaOptionalKey); in optionalInjectorTest()
679 assertEquals(javaOptionalKey, javaOptionalBinder.getKey()); in optionalInjectorTest()
769 } else if (b.getKey().equals(javaOptionalKey)) { in optionalInjectorTest()
825 Key<?> javaOptionalKey = HAS_JAVA_OPTIONAL ? in optionalModuleTest() local
838 Binding javaOptionalBinding = indexed.get(javaOptionalKey); in optionalModuleTest()
917 } else if (key != null && key.equals(javaOptionalKey)) { in optionalModuleTest()