Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for firstOrNull (0.34 sec)

  1. 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 elements
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. 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
        }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. 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 ||
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  4. 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 elements
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  5. 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"),
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Apr 05 09:48:10 UTC 2025
    - 6.6K bytes
    - Viewed (1)
  6. 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 {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Jul 08 07:02:19 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  7. 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()
        }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Mon Aug 18 18:02:41 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  8. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateKotlinVersions.kt

                                if (versionsOfPatch.any { it.contains("-RC") }) {
                                    add(versionsOfPatch.firstOrNull { it.contains("-RC") })
                                } else if (versionsOfPatch.any { it.contains("-Beta") }) {
                                    add(versionsOfPatch.firstOrNull { it.contains("-Beta") })
                                }
                            }
                        }
                    }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Oct 29 08:29:55 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. 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()
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Jul 04 09:21:38 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  10. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/support/ClassBytesRepository.kt

            classFilePathCandidatesFor(sourceName)
                .mapNotNull(::classBytesSupplierForFilePath)
                .firstOrNull()
    
        private
        fun classBytesSupplierForFilePath(classFilePath: String): ClassBytesSupplier? =
            classBytesIndex.asSequence().mapNotNull { it(classFilePath) }.firstOrNull()
    
        private
        fun sourceNamesFrom(entry: File): Sequence<String> =
            when {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top