Home
last modified time | relevance | path

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

/external/guice/extensions/multibindings/src/com/google/inject/multibindings/
DOptionalBinder.java170 private static final Class<?> JAVA_OPTIONAL_CLASS; field in OptionalBinder
187 JAVA_OPTIONAL_CLASS = useJavaOptional ? optional : null;
222 checkState(JAVA_OPTIONAL_CLASS != null, "java.util.Optional not found"); in javaOptionalOf()
223 return TypeLiteral.get(Types.newParameterizedType(JAVA_OPTIONAL_CLASS, type.getType())); in javaOptionalOf()
236 checkState(JAVA_OPTIONAL_CLASS != null, "java.util.Optional not found"); in javaOptionalOfJavaxProvider()
237 return TypeLiteral.get(Types.newParameterizedType(JAVA_OPTIONAL_CLASS, in javaOptionalOfJavaxProvider()
248 checkState(JAVA_OPTIONAL_CLASS != null, "java.util.Optional not found"); in javaOptionalOfProvider()
249 return TypeLiteral.get(Types.newParameterizedType(JAVA_OPTIONAL_CLASS, in javaOptionalOfProvider()
338 if (JAVA_OPTIONAL_CLASS != null) { in RealOptionalBinder()
396 if (JAVA_OPTIONAL_CLASS != null) { in bindJava8Optional()
[all …]
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/
DOptionalBinderTest.java77 private static final Class<?> JAVA_OPTIONAL_CLASS; field in OptionalBinderTest
90 JAVA_OPTIONAL_CLASS = optional;
1238 JAVA_OPTIONAL_CLASS.isInstance(object)); in toOptional()