Home
last modified time | relevance | path

Searched refs:toOptional (Results 1 – 22 of 22) sorted by relevance

/external/guava/guava-tests/test/com/google/common/collect/
DMoreCollectorsTest.java35 assertThat(Stream.empty().collect(MoreCollectors.toOptional())).isEmpty(); in testToOptionalEmpty()
39 assertThat(Stream.of(1).collect(MoreCollectors.toOptional())).hasValue(1); in testToOptionalSingleton()
45 stream.collect(MoreCollectors.toOptional()); in testToOptionalNull()
53 Stream.of(1, 2).collect(MoreCollectors.toOptional()); in testToOptionalMultiple()
62 Stream.of(1, null).collect(MoreCollectors.toOptional()); in testToOptionalMultipleWithNull()
70 Stream.of(1, 2, 3, 4, 5, 6).collect(MoreCollectors.toOptional()); in testToOptionalMany()
/external/dokka/core/src/main/kotlin/Formats/
DFormatDescriptor.kt7 import org.jetbrains.dokka.Utilities.toOptional
31 lazyBind<OutlineFormatService>() toOptional (outlineServiceClass) in <lambda>()
32 lazyBind<FormatService>() toOptional formatServiceClass in <lambda>()
33 lazyBind<PackageListService>() toOptional packageListServiceClass in <lambda>()
/external/guice/core/test/com/google/inject/internal/
DOptionalBinderTest.java174 optional = toOptional(injector.getInstance(Key.get(javaOptionalOfString))); in testOptionalIsAbsentByDefault()
177 optionalP = toOptional(injector.getInstance(Key.get(javaOptionalOfProviderString))); in testOptionalIsAbsentByDefault()
180 optionalJxP = toOptional(injector.getInstance(Key.get(javaOptionalOfJavaxProviderString))); in testOptionalIsAbsentByDefault()
216 optional = toOptional(injector.getInstance(Key.get(javaOptionalOfString))); in testUsesUserBoundValue()
219 optionalP = toOptional(injector.getInstance(Key.get(javaOptionalOfProviderString))); in testUsesUserBoundValue()
222 optionalJxP = toOptional(injector.getInstance(Key.get(javaOptionalOfJavaxProviderString))); in testUsesUserBoundValue()
258 optional = toOptional(injector.getInstance(Key.get(javaOptionalOfString))); in testUsesUserBoundValueNullProvidersMakeAbsent()
261 optionalP = toOptional(injector.getInstance(Key.get(javaOptionalOfProviderString))); in testUsesUserBoundValueNullProvidersMakeAbsent()
264 optionalJxP = toOptional(injector.getInstance(Key.get(javaOptionalOfJavaxProviderString))); in testUsesUserBoundValueNullProvidersMakeAbsent()
370 optional = toOptional(injector.getInstance(Key.get(javaOptionalOfString))); in testSetDefault()
[all …]
/external/auto/value/src/main/java/com/google/auto/value/extension/toprettystring/processor/
DToPrettyStringMethods.java23 import static com.google.common.collect.MoreCollectors.toOptional;
62 return toPrettyStringMethods(element, types, elements).stream().collect(toOptional()); in toPrettyStringMethod()
/external/dagger2/java/dagger/internal/codegen/binding/
DSubcomponentDeclaration.java20 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional;
80 .collect(toOptional()) in forModule()
DInjectionAnnotations.java35 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional;
115 return getScopes(element).stream().collect(toOptional()); in getScope()
447 .collect(DaggerCollectors.toOptional()) in getQualifiersForKotlinProperty()
DModuleDescriptor.java29 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional;
179 .collect(toOptional()) in createUncached()
DBindingGraph.java20 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional;
358 .collect(toOptional()); in factoryMethod()
/external/dagger2/java/dagger/internal/codegen/writing/
DMapFactoryCreationExpression.java22 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional;
70 .collect(toOptional()) in creationExpression()
/external/kotlinpoet/interop/kotlinx-metadata/src/main/kotlin/com/squareup/kotlinpoet/metadata/classinspectors/
DOptional.kt23 internal fun <T : Any> T?.toOptional(): Optional<T> = Optional( method
DReflectiveClassInspector.kt97 }.toOptional() in <lambda>()
129 .find { signatureString == it.jvmFieldSignature }.toOptional() in <lambda>()
144 .find { signatureString == it.jvmMethodSignature }.toOptional() in <lambda>()
156 .find { signatureString == it.jvmMethodSignature }.toOptional() in <lambda>()
239 .toOptional() in <lambda>()
DElementsClassInspector.kt107 elements.getTypeElement(className.canonicalName).toOptional() in <lambda>()
136 .find { signatureString == it.jvmFieldSignature(types) }.toOptional() in <lambda>()
155 .find { signatureString == it.jvmMethodSignature(types) }.toOptional() in <lambda>()
208 .find { it.simpleName.contentEquals(memberName) }.toOptional() in <lambda>()
/external/dokka/core/src/main/kotlin/Formats/JavaLayoutHtml/
DJavaLayoutHtmlFormat.kt8 import org.jetbrains.dokka.Utilities.toOptional
21 lazyBind<JavaLayoutHtmlFormatOutlineFactoryService>() toOptional outlineFactoryClass in <lambda>()
/external/dagger2/java/dagger/internal/codegen/
DModuleProcessingStep.java19 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional;
118 .collect(toOptional()) in process()
/external/google-java-format/core/src/test/java/com/google/googlejavaformat/java/
DFormatterIntegrationTest.java17 import static com.google.common.collect.MoreCollectors.toOptional;
95 VERSIONED_TESTS.inverse().get(fileName).stream().collect(toOptional()); in data()
/external/dagger2/java/dagger/internal/codegen/extension/
DDaggerCollectors.java49 public static <T> Collector<T, ?, Optional<T>> toOptional() { in toOptional() method in DaggerCollectors
/external/guava/guava/src/com/google/common/collect/
DMoreCollectors.java62 public static <T> Collector<T, ?, Optional<T>> toOptional() { in toOptional() method in MoreCollectors
/external/dagger2/java/dagger/internal/codegen/validation/
DInjectBindingRegistryImpl.java30 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional;
364 .collect(toOptional()) in getOrFindProvisionBinding()
DModuleValidator.java26 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional;
225 .collect(toOptional()) in validateUncached()
/external/dokka/core/src/main/kotlin/Utilities/
DDokkaModules.kt78 …ified T: Any, TKClass: KClass<out T>> Lazy<AnnotatedBindingBuilder<T>>.toOptional(kClass: TKClass?… in toOptional() method
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/
DGenerators.java20 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional;
149 .collect(toOptional()) in copyConstructor()
/external/dagger2/java/dagger/hilt/processor/internal/
DProcessors.java23 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional;
212 .collect(toOptional()); in getOptionalAnnotationClassValue()
637 .collect(toOptional());