- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 22 for firstOrNull (0.06 seconds)
-
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 Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 2.3K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt
) { val commonName: Any? get() { return tbsCertificate.subject .flatten() .firstOrNull { it.type == ObjectIdentifiers.COMMON_NAME } ?.value } val organizationalUnitName: Any? get() { return tbsCertificate.subject .flatten() .firstOrNull { it.type == ObjectIdentifiers.ORGANIZATIONAL_UNIT_NAME } ?.value }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 6.4K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/BasicTrustRootIndex.kt
val issuer = cert.issuerX500Principal val subjectCaCerts = subjectToCaCerts[issuer] ?: return null return subjectCaCerts.firstOrNull { try { cert.verify(it.publicKey) return@firstOrNull true } catch (_: Exception) { return@firstOrNull false } } } override fun equals(other: Any?): Boolean = other === this ||Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.8K bytes - Click Count (0) -
android/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 Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 2.3K 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 Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Apr 05 09:48:10 GMT 2025 - 6.6K bytes - Click Count (1) -
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 Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Jul 08 07:02:19 GMT 2025 - 13.2K bytes - Click Count (0) -
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 Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Aug 18 18:02:41 GMT 2025 - 1.2K bytes - Click Count (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateKotlinVersions.kt
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Oct 29 08:29:55 GMT 2025 - 4.3K 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 Dec 31 11:36:14 GMT 2025 - 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 Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Jul 10 02:18:03 GMT 2025 - 16.6K bytes - Click Count (0)