Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for get_default (0.07 sec)

  1. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

          object : DelegatingServerSocketFactory(getDefault()) {
            override fun configureServerSocket(serverSocket: ServerSocket): ServerSocket {
              serverSocket.receiveBufferSize = socketBufferSize
              return serverSocket
            }
          }
        client =
          client.newBuilder()
            .socketFactory(
              object : DelegatingSocketFactory(getDefault()) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Maps.java

          return backingSet().contains(key);
        }
    
        @Override
        @CheckForNull
        public V get(@CheckForNull Object key) {
          return getOrDefault(key, null);
        }
    
        @Override
        @CheckForNull
        public V getOrDefault(@CheckForNull Object key, @CheckForNull V defaultValue) {
          if (Collections2.safeContains(backingSet(), key)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        LocalCache<Object, Object> map =
            makeLocalCache(createCacheBuilder().concurrencyLevel(1).initialCapacity(1));
        map.put(1, 1);
        assertEquals(1, map.getOrDefault(1, 2));
        assertEquals(2, map.getOrDefault(2, 2));
      }
    
      public void testPutCausesExpansion() {
        for (int count = 1; count <= 100; count++) {
          LocalCache<Object, Object> map =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        LocalCache<Object, Object> map =
            makeLocalCache(createCacheBuilder().concurrencyLevel(1).initialCapacity(1));
        map.put(1, 1);
        assertEquals(1, map.getOrDefault(1, 2));
        assertEquals(2, map.getOrDefault(2, 2));
      }
    
      public void testPutCausesExpansion() {
        for (int count = 1; count <= 100; count++) {
          LocalCache<Object, Object> map =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  5. fastapi/applications.py

            ] = {} if exception_handlers is None else dict(exception_handlers)
            self.exception_handlers.setdefault(HTTPException, http_exception_handler)
            self.exception_handlers.setdefault(
                RequestValidationError, request_validation_exception_handler
            )
            self.exception_handlers.setdefault(
                WebSocketRequestValidationError,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:52:31 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CacheTest.kt

        client =
          clientTestRule.newClientBuilder()
            .cache(cache)
            .cookieJar(JavaNetCookieJar(cookieManager))
            .build()
      }
    
      @AfterEach
      fun tearDown() {
        ResponseCache.setDefault(null)
        cache.delete()
      }
    
      /**
       * Test that response caching is consistent with the RI and the spec.
       * http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.4
       */
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/LocalCache.java

          globalStatsCounter.recordMisses(1);
        } else {
          globalStatsCounter.recordHits(1);
        }
        return value;
      }
    
      @Override
      @CheckForNull
      public V getOrDefault(@CheckForNull Object key, @CheckForNull V defaultValue) {
        V result = get(key);
        return (result != null) ? result : defaultValue;
      }
    
      V getOrLoad(K key) throws ExecutionException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
Back to top