Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for mapNotNull (0.06 sec)

  1. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/support/ClassBytesRepository.kt

                .flatMap { sourceNamesFrom(it) }
                .mapNotNull { sourceName ->
                    classBytesSupplierForSourceName(sourceName)?.let { sourceName to it }
                }
    
        private
        fun classBytesSupplierForSourceName(sourceName: String): ClassBytesSupplier? =
            classFilePathCandidatesFor(sourceName)
                .mapNotNull(::classBytesSupplierForFilePath)
                .firstOrNull()
    
        private
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. samples/tlssurvey/src/main/kotlin/okhttp3/survey/Iana.kt

      val suites =
        call.executeAsync().use {
          if (!it.isSuccessful) {
            throw IOException("Failed ${it.code} ${it.message}")
          }
          it.body
            .string()
            .lines()
            .mapNotNull { parseIanaCsvRow(it) }
        }
    
      return IanaSuites("current", suites)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2K bytes
    - Viewed (0)
  3. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/action/AnnotationGeneratorWorkAction.kt

            val objectMethods = Any::class.java.declaredMethods.toList()
            return receiverType
                .memberFunctions
                .asSequence()
                .mapNotNull { it.javaMethod }
                .filterNot { objectMethods.contains(it) }
                .map { it.toGroovyScriptString() }
                .sorted()
                .joinToString(separator = "\n")
        }
    
        private
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Sun Jul 07 16:02:18 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt

      open fun getHandshakeServerNames(sslSocket: SSLSocket): List<String> {
        val session = sslSocket.session as? ExtendedSSLSession ?: return listOf()
        return try {
          session.requestedServerNames.mapNotNull { (it as? SNIHostName)?.asciiName }
        } catch (uoe: UnsupportedOperationException) {
          // UnsupportedOperationException – if the underlying provider does not implement the operation
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.1K bytes
    - Viewed (0)
Back to top