Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 37 for MutableList (0.18 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

      override fun toString(): String = status
    
      @ExperimentalOkHttpApi
      class Builder : Cloneable {
        var inTunnel: Boolean
          internal set
    
        val informationalResponses: MutableList<MockResponse>
    
        var status: String
    
        var code: Int
          get() {
            val statusParts = status.split(' ', limit = 3)
            require(statusParts.size >= 2) { "Unexpected status: $status" }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 13.3K bytes
    - Viewed (1)
  2. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

        } catch (ioe: IOException) {
          if (exception == null) {
            exception = ioe
          }
        }
      }
      if (exception != null) {
        throw exception
      }
    }
    
    internal fun <E> MutableList<E>.addIfAbsent(element: E) {
      if (!contains(element)) add(element)
    }
    
    internal fun Exception.withSuppressed(suppressed: List<Exception>): Throwable =
      apply {
        for (e in suppressed) addSuppressed(e)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/ConnectionSpecTest.kt

        applyConnectionSpec(tlsSpec, socket, isFallback = true)
        assertThat(socket.enabledProtocols).containsExactly(
          TlsVersion.TLS_1_2.javaName,
        )
        val expectedCipherSuites: MutableList<String> = ArrayList()
        expectedCipherSuites.add(CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256.javaName)
        expectedCipherSuites.add(CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA.javaName)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        Collection<String> c = MinimalCollection.of("a", "b", "a");
        List<String> list = ImmutableList.copyOf(c);
        assertEquals(asList("a", "b", "a"), list);
        List<String> mutableList = asList("a", "b");
        list = ImmutableList.copyOf(mutableList);
        mutableList.set(0, "c");
        assertEquals(asList("a", "b"), list);
      }
    
      public void testCopyOf_collectionContainingNull() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        Collection<String> c = MinimalCollection.of("a", "b", "a");
        List<String> list = ImmutableList.copyOf(c);
        assertEquals(asList("a", "b", "a"), list);
        List<String> mutableList = asList("a", "b");
        list = ImmutableList.copyOf(mutableList);
        mutableList.set(0, "c");
        assertEquals(asList("a", "b"), list);
      }
    
      public void testCopyOf_collectionContainingNull() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.3K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt

    internal fun Headers.commonValue(index: Int): String =
      namesAndValues.getOrNull(index * 2 + 1) ?: throw IndexOutOfBoundsException("value[$index]")
    
    internal fun Headers.commonValues(name: String): List<String> {
      var result: MutableList<String>? = null
      for (i in 0 until size) {
        if (name.equals(name(i), ignoreCase = true)) {
          if (result == null) result = ArrayList(2)
          result.add(value(i))
        }
      }
      return result?.toList().orEmpty()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

    class MockHttp2Peer : Closeable {
      private var frameCount = 0
      private var client = false
      private val bytesOut = Buffer()
      private var writer = Http2Writer(bytesOut, client)
      private val outFrames: MutableList<OutFrame> = ArrayList()
      private val inFrames: BlockingQueue<InFrame> = LinkedBlockingQueue()
      private var port = 0
      private val executor = Executors.newSingleThreadExecutor(threadFactory("MockHttp2Peer"))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

            Platform.get().log("Unable to parse challenge", Platform.WARN, e)
          }
        }
      }
      return result
    }
    
    @Throws(EOFException::class)
    private fun Buffer.readChallengeHeader(result: MutableList<Challenge>) {
      var peek: String? = null
    
      while (true) {
        // Read a scheme name for this challenge if we don't have one already.
        if (peek == null) {
          skipCommasAndWhitespace()
          peek = readToken()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

        private val firResolveSession: LLFirResolveSession,
    ) {
        val typesToShorten: MutableList<ShortenType> = mutableListOf()
        val qualifiersToShorten: MutableList<ShortenQualifier> = mutableListOf()
        val labelsToShorten: MutableList<ShortenThisLabel> = mutableListOf()
    
        fun processTypeRef(resolvedTypeRef: FirResolvedTypeRef) {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:51:33 GMT 2024
    - 69.5K bytes
    - Viewed (0)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ScopeProvider.kt

                    require(symbol is KtFe10Symbol) { "Unrecognized symbol implementation found" }
                    null
                }
            }
        }
    
        private fun collectImplicitReceivers(scope: LexicalScope): MutableList<KtImplicitReceiver> {
            val result = mutableListOf<KtImplicitReceiver>()
    
            for ((index, implicitReceiver) in scope.getImplicitReceiversHierarchy().withIndex()) {
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 12.6K bytes
    - Viewed (0)
Back to top