Searched refs:JAVA_OPTIONAL_CLASS (Results 1 – 2 of 2) sorted by relevance
68 private static final Class<?> JAVA_OPTIONAL_CLASS; field in RealOptionalBinder89 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()
72 private static final Class<?> JAVA_OPTIONAL_CLASS; field in OptionalBinderTest86 JAVA_OPTIONAL_CLASS = optional;1473 "not a java.util.Optional: " + object.getClass(), JAVA_OPTIONAL_CLASS.isInstance(object)); in toOptional()