/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, 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/ |
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/auto/value/src/main/java/com/google/auto/value/extension/toprettystring/processor/ |
D | ToPrettyStringMethods.java | 23 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/ |
D | SubcomponentDeclaration.java | 20 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional; 80 .collect(toOptional()) in forModule()
|
D | InjectionAnnotations.java | 35 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional; 115 return getScopes(element).stream().collect(toOptional()); in getScope() 447 .collect(DaggerCollectors.toOptional()) in getQualifiersForKotlinProperty()
|
D | ModuleDescriptor.java | 29 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional; 179 .collect(toOptional()) in createUncached()
|
D | BindingGraph.java | 20 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional; 358 .collect(toOptional()); in factoryMethod()
|
/external/dagger2/java/dagger/internal/codegen/writing/ |
D | MapFactoryCreationExpression.java | 22 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/ |
D | Optional.kt | 23 internal fun <T : Any> T?.toOptional(): Optional<T> = Optional( method
|
D | ReflectiveClassInspector.kt | 97 }.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>()
|
D | ElementsClassInspector.kt | 107 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/ |
D | JavaLayoutHtmlFormat.kt | 8 import org.jetbrains.dokka.Utilities.toOptional 21 lazyBind<JavaLayoutHtmlFormatOutlineFactoryService>() toOptional outlineFactoryClass in <lambda>()
|
/external/dagger2/java/dagger/internal/codegen/ |
D | ModuleProcessingStep.java | 19 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/ |
D | FormatterIntegrationTest.java | 17 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/ |
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 | 62 public static <T> Collector<T, ?, Optional<T>> toOptional() { in toOptional() method in MoreCollectors
|
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | InjectBindingRegistryImpl.java | 30 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional; 364 .collect(toOptional()) in getOrFindProvisionBinding()
|
D | ModuleValidator.java | 26 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional; 225 .collect(toOptional()) in validateUncached()
|
/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/android/processor/internal/androidentrypoint/ |
D | Generators.java | 20 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional; 149 .collect(toOptional()) in copyConstructor()
|
/external/dagger2/java/dagger/hilt/processor/internal/ |
D | Processors.java | 23 import static dagger.internal.codegen.extension.DaggerCollectors.toOptional; 212 .collect(toOptional()); in getOptionalAnnotationClassValue() 637 .collect(toOptional());
|