Home
last modified time | relevance | path

Searched refs:toOptional (Results 1 – 13 of 13) 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, 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/dokka/core/src/main/kotlin/Formats/JavaLayoutHtml/
DJavaLayoutHtmlFormat.kt8 import org.jetbrains.dokka.Utilities.toOptional
21 lazyBind<JavaLayoutHtmlFormatOutlineFactoryService>() toOptional outlineFactoryClass in <lambda>()
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/java14/
DJava14InputAstVisitor.java18 import static com.google.common.collect.MoreCollectors.toOptional;
167 .collect(toOptional()); in compactRecordConstructor()
/external/dagger2/java/dagger/internal/codegen/binding/
DBindingGraph.java19 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional;
256 .collect(toOptional()); in factoryMethod()
DInjectionAnnotations.java139 .collect(DaggerCollectors.toOptional()) in getQualifiersForKotlinProperty()
/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.java58 public static <T> Collector<T, ?, Optional<T>> toOptional() { in toOptional() method in MoreCollectors
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/
DGenerators.java20 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional;
139 .collect(toOptional()) in copyConstructor()
/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/processor/internal/
DProcessors.java22 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional;
189 .collect(toOptional()); in getOptionalAnnotationClassValue()
606 .collect(toOptional());
/external/dagger2/java/dagger/internal/codegen/writing/
DComponentBindingExpressions.java23 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional;
252 .collect(toOptional()); in getBindingExpression()