- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for firstOrNull (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava/src/com/google/common/collect/AbstractSequentialIterator.java
private @Nullable T nextOrNull; /** * Creates a new iterator with the given first element, or, if {@code firstOrNull} is null, * creates a new empty iterator. */ protected AbstractSequentialIterator(@Nullable T firstOrNull) { this.nextOrNull = firstOrNull; } /** * Returns the element that follows {@code previous}, or returns {@code null} if no elementsCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 2.3K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt
"${declaringClass.baseQualifiedKotlinName}.${field.name}".let { fqn -> collectDescendantsOfType<KtProperty>() .firstOrNull { it.fqName?.asString() == fqn } .getSinceStatus(fallback) } private fun KtFile.getSince(declaringClass: CtClass, constructor: CtConstructor, fallback: String?): SinceTagStatus {Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Jul 08 07:02:19 GMT 2025 - 13.2K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/HasKotlinFlagsMetadataQuery.kt
constructorsSupplier.get().firstOrNull { c -> jvmSignature == c.signature?.toString() }?.let { predicate.match(it) } ?: false private fun hasFunctionAttribute(functionsSupplier: Supplier<MutableList<KmFunction>>, jvmSignature: String, predicate: AttributePredicate) = functionsSupplier.get().firstOrNull { jvmSignature == it.signature?.toString()
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Jul 04 09:21:38 GMT 2025 - 5.8K bytes - Click Count (0) -
.teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt
.mapNotNull { it.getOrDefault(scenario.testProject, emptyList()).firstOrNull { duration -> duration.scenario == scenario.scenario } }.firstOrNull() // Fallback for new performance tests (don't use 0 to avoid division by zero)Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Jan 29 01:37:22 GMT 2026 - 17.2K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/SourcesRepository.kt
*/ fun sourceFileAndSourceRootFor(sourceFilePath: String): Pair<File, File> = sourceRoots.asSequence() .map { it.resolve(sourceFilePath) to it } .firstOrNull { it.first.isFile } ?: error("Source file '$sourceFilePath' not found, searched in source roots:\n - ${sourceRoots.joinToString("\n - ")}") private val KtFile.normalizedPath: String?Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Apr 28 14:56:52 GMT 2025 - 4.1K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/JsseDebugLogging.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 2.8K bytes - Click Count (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateAgpVersions.kt
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Oct 24 09:10:29 GMT 2025 - 7.6K bytes - Click Count (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractCheckOrUpdateContributorsInReleaseNotes.kt
error("Can't find the contributors section in the release notes $releaseNotes.") } val contributorSectionEndIndex = (contributorSectionBeginIndex until releaseNotesLines.size).firstOrNull { val line = releaseNotesLines[it].trim() line.isNotEmpty() && !line.startsWith("[") } ?: error("Can't find the contributors section end in the release notes $releaseNotes.")
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Jun 24 07:54:08 GMT 2025 - 5.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Handshake.kt
/** Returns the remote peer's principle, or null if that peer is anonymous. */ @get:JvmName("peerPrincipal") val peerPrincipal: Principal? get() = (peerCertificates.firstOrNull() as? X509Certificate)?.subjectX500Principal @JvmName("-deprecated_peerPrincipal") @Deprecated( message = "moved to val", replaceWith = ReplaceWith(expression = "peerPrincipal"),
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 6.6K bytes - Click Count (1) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/util/ConfigurationExtensions.kt
val name = this.name return incoming.files.elements.map { require(it.size <= 1) { "Expected at most one file in configuration '$name' but found: $it" } it.firstOrNull()?.asFile } } fun NamedDomainObjectProvider<Configuration>.getSingleFileProvider(): Provider<File> { return this.flatMap { configuration -> configuration.getSingleFileProvider() }Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Aug 18 18:02:41 GMT 2025 - 1.2K bytes - Click Count (0)