Home
last modified time | relevance | path

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

/external/guice/core/src/com/google/inject/internal/
DRealOptionalBinder.java68 private static final Class<?> JAVA_OPTIONAL_CLASS; field in RealOptionalBinder
89 JAVA_OPTIONAL_CLASS = useJavaOptional ? optional : null;
125 checkState(JAVA_OPTIONAL_CLASS != null, "java.util.Optional not found"); in javaOptionalOf()
126 return TypeLiteral.get(Types.newParameterizedType(JAVA_OPTIONAL_CLASS, type.getType())); in javaOptionalOf()
139 checkState(JAVA_OPTIONAL_CLASS != null, "java.util.Optional not found"); in javaOptionalOfJavaxProvider()
142 JAVA_OPTIONAL_CLASS, in javaOptionalOfJavaxProvider()
155 checkState(JAVA_OPTIONAL_CLASS != null, "java.util.Optional not found"); in javaOptionalOfProvider()
158 JAVA_OPTIONAL_CLASS, newParameterizedType(Provider.class, type.getType()))); in javaOptionalOfProvider()
275 if (JAVA_OPTIONAL_CLASS != null) { in bindJava8Optional()
/external/guice/core/test/com/google/inject/internal/
DOptionalBinderTest.java72 private static final Class<?> JAVA_OPTIONAL_CLASS; field in OptionalBinderTest
86 JAVA_OPTIONAL_CLASS = optional;
1473 "not a java.util.Optional: " + object.getClass(), JAVA_OPTIONAL_CLASS.isInstance(object)); in toOptional()