Searched refs:JAVA_OPTIONAL_CLASS (Results 1 – 2 of 2) sorted by relevance
170 private static final Class<?> JAVA_OPTIONAL_CLASS; field in OptionalBinder187 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 …]
77 private static final Class<?> JAVA_OPTIONAL_CLASS; field in OptionalBinderTest90 JAVA_OPTIONAL_CLASS = optional;1238 JAVA_OPTIONAL_CLASS.isInstance(object)); in toOptional()