Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for MutableList (0.21 sec)

  1. android/guava-tests/test/com/google/common/base/ConverterTest.java

        List<String> mutableList = Lists.newArrayList("789", "123");
        Iterable<Long> convertedValues = STR_TO_LONG.convertAll(mutableList);
        assertEquals(ImmutableList.of(789L, 123L), ImmutableList.copyOf(convertedValues));
    
        Iterator<Long> iterator = convertedValues.iterator();
        iterator.next();
        iterator.remove();
        assertEquals(ImmutableList.of("123"), mutableList);
      }
    
      public void testReverse() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 06 17:02:33 GMT 2023
    - 7.8K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

        return results.ifEmpty {
          throwBestFailure(hostname, failures)
        }
      }
    
      private fun buildRequest(
        hostname: String,
        networkRequests: MutableList<Call>,
        results: MutableList<InetAddress>,
        failures: MutableList<Exception>,
        type: Int,
      ) {
        val request = buildRequest(hostname, type)
        val response = getCacheOnlyResponse(request)
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/HasKotlinFlagsMetadataQuery.kt

        }
    
    
    private
    fun hasConstructorFlags(constructorsSupplier: Supplier<MutableList<KmConstructor>>, jvmSignature: String, predicate: FlagsPredicate) =
        constructorsSupplier.get().firstOrNull { c -> jvmSignature == c.signature?.asString() }?.flags?.let { predicate(it) } ?: false
    
    
    private
    fun hasFunctionFlags(functionsSupplier: Supplier<MutableList<KmFunction>>, jvmSignature: String, predicate: FlagsPredicate) =
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Wed Jun 07 08:14:15 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CertificateChainCleanerTest.kt

          .isEqualTo(
            list(certificate, intermediateCa, trusted),
          )
      }
    
      @Test
      fun chainMaxLength() {
        val heldCertificates = chainOfLength(10)
        val certificates: MutableList<Certificate> = ArrayList()
        for (heldCertificate in heldCertificates) {
          certificates.add(heldCertificate.certificate)
        }
        val root = heldCertificates[heldCertificates.size - 1].certificate
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/ConverterTest.java

        List<String> mutableList = Lists.newArrayList("789", "123");
        Iterable<Long> convertedValues = STR_TO_LONG.convertAll(mutableList);
        assertEquals(ImmutableList.of(789L, 123L), ImmutableList.copyOf(convertedValues));
    
        Iterator<Long> iterator = convertedValues.iterator();
        iterator.next();
        iterator.remove();
        assertEquals(ImmutableList.of("123"), mutableList);
      }
    
      public void testReverse() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 06 17:02:33 GMT 2023
    - 7.8K bytes
    - Viewed (0)
  6. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt

     * Modifies [ranges] to combine any adjacent [MappedRange.InlineDelta] of same size to single entry.
     * @returns same instance of [ranges] for convenience
     */
    internal fun mergeAdjacentDeltaMappedRanges(ranges: MutableList<MappedRange>): MutableList<MappedRange> {
      var i = 0
      while (i < ranges.size) {
        val curr = ranges[i]
        if (curr is MappedRange.InlineDelta) {
          val j = i + 1
          mergeAdjacent@ while (j < ranges.size) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/FakeProxySelector.kt

    package okhttp3
    
    import java.io.IOException
    import java.net.Proxy
    import java.net.ProxySelector
    import java.net.SocketAddress
    import java.net.URI
    
    class FakeProxySelector : ProxySelector() {
      val proxies: MutableList<Proxy> = mutableListOf()
    
      fun addProxy(proxy: Proxy): FakeProxySelector {
        proxies.add(proxy)
        return this
      }
    
      override fun select(uri: URI): List<Proxy> {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingHostnameVerifier.kt

     * limitations under the License.
     */
    package okhttp3
    
    import javax.net.ssl.HostnameVerifier
    import javax.net.ssl.SSLSession
    
    class RecordingHostnameVerifier : HostnameVerifier {
      @JvmField
      val calls: MutableList<String> = mutableListOf()
    
      @Synchronized override fun verify(
        hostname: String,
        session: SSLSession,
      ): Boolean {
        calls.add("verify $hostname")
        return true
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 980 bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocket.kt

      }
    
      override fun setHandshakeApplicationProtocolSelector(selector: BiFunction<SSLSocket, MutableList<String>, String>?) {
        delegate!!.handshakeApplicationProtocolSelector = selector
      }
    
      override fun getHandshakeApplicationProtocolSelector(): BiFunction<SSLSocket, MutableList<String>, String> {
        return delegate!!.handshakeApplicationProtocolSelector
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/Headers.kt

       */
      override fun toString(): String = commonToString()
    
      fun toMultimap(): Map<String, List<String>> {
        val result = TreeMap<String, MutableList<String>>(String.CASE_INSENSITIVE_ORDER)
        for (i in 0 until size) {
          val name = name(i).lowercase(Locale.US)
          var values: MutableList<String>? = result[name]
          if (values == null) {
            values = ArrayList(2)
            result[name] = values
          }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.5K bytes
    - Viewed (0)
Back to top