Searched refs:toOptional (Results 1 – 13 of 13) sorted by relevance
/external/guava/guava-tests/test/com/google/common/collect/ |
D | MoreCollectorsTest.java | 35 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/ |
D | FormatDescriptor.kt | 7 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/ |
D | OptionalBinderTest.java | 174 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/ |
D | JavaLayoutHtmlFormat.kt | 8 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/ |
D | Java14InputAstVisitor.java | 18 import static com.google.common.collect.MoreCollectors.toOptional; 167 .collect(toOptional()); in compactRecordConstructor()
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | BindingGraph.java | 19 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional; 256 .collect(toOptional()); in factoryMethod()
|
D | InjectionAnnotations.java | 139 .collect(DaggerCollectors.toOptional()) in getQualifiersForKotlinProperty()
|
/external/dagger2/java/dagger/internal/codegen/extension/ |
D | DaggerCollectors.java | 49 public static <T> Collector<T, ?, Optional<T>> toOptional() { in toOptional() method in DaggerCollectors
|
/external/guava/guava/src/com/google/common/collect/ |
D | MoreCollectors.java | 58 public static <T> Collector<T, ?, Optional<T>> toOptional() { in toOptional() method in MoreCollectors
|
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/ |
D | Generators.java | 20 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional; 139 .collect(toOptional()) in copyConstructor()
|
/external/dokka/core/src/main/kotlin/Utilities/ |
D | DokkaModules.kt | 78 …ified T: Any, TKClass: KClass<out T>> Lazy<AnnotatedBindingBuilder<T>>.toOptional(kClass: TKClass?… in toOptional() method
|
/external/dagger2/java/dagger/hilt/processor/internal/ |
D | Processors.java | 22 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional; 189 .collect(toOptional()); in getOptionalAnnotationClassValue() 606 .collect(toOptional());
|
/external/dagger2/java/dagger/internal/codegen/writing/ |
D | ComponentBindingExpressions.java | 23 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional; 252 .collect(toOptional()); in getBindingExpression()
|