Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 135 of 135 for get$default (0.09 sec)

  1. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      public <T> void testNulls() {
        new NullPointerTester().testAllPublicStaticMethods(TypeToken.class);
        new NullPointerTester()
            .setDefault(TypeParameter.class, new TypeParameter<T>() {})
            .testAllPublicInstanceMethods(TypeToken.of(String.class));
      }
    
      private static class Assignability<From, To> {
    
        boolean isAssignable() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        }
      }
    
      @AfterEach fun tearDown() {
    //    TODO reenable after https://github.com/square/okhttp/issues/8206
    //    fileSystem.checkNoOpenFiles()
        cache.close()
    
        java.net.Authenticator.setDefault(null)
      }
    
      @ParameterizedTest
      @ArgumentsSource(ProtocolParamProvider::class)
      fun get(
        protocol: Protocol,
        mockWebServer: MockWebServer,
      ) {
        setUp(protocol, mockWebServer)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  3. 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)
  4. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      public <T> void testNulls() {
        new NullPointerTester().testAllPublicStaticMethods(TypeToken.class);
        new NullPointerTester()
            .setDefault(TypeParameter.class, new TypeParameter<T>() {})
            .testAllPublicInstanceMethods(TypeToken.of(String.class));
      }
    
      private static class Assignability<From, To> {
    
        boolean isAssignable() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  5. 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