Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Soft (0.02 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

        assertThat(spec.maximumWeight).isNull();
        assertThat(spec.concurrencyLevel).isNull();
        assertThat(spec.keyStrength).isNull();
        assertThat(spec.valueStrength).isEqualTo(Strength.SOFT);
        assertThat(spec.writeExpirationTimeUnit).isNull();
        assertThat(spec.accessExpirationTimeUnit).isNull();
        assertCacheBuilderEquivalence(CacheBuilder.newBuilder().softValues(), CacheBuilder.from(spec));
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheReferencesTest.java

        return new CacheBuilderFactory()
            .withKeyStrengths(ImmutableSet.of(STRONG, Strength.WEAK))
            .withValueStrengths(ImmutableSet.of(STRONG, Strength.WEAK, Strength.SOFT));
      }
    
      private Iterable<LoadingCache<Key, String>> caches() {
        CacheBuilderFactory factory = factoryWithAllKeyStrengths();
        return Iterables.transform(
            factory.buildAllPermutations(),
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

        return new CacheBuilderFactory()
            .withKeyStrengths(ImmutableSet.of(STRONG, Strength.WEAK))
            .withValueStrengths(ImmutableSet.of(STRONG, Strength.WEAK, Strength.SOFT));
      }
    
      private Iterable<LoadingCache<Key, String>> caches() {
        CacheBuilderFactory factory = factoryWithAllKeyStrengths();
        return Iterables.transform(
            factory.buildAllPermutations(),
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/CacheBuilder.java

       * demand.
       *
       * <p><b>Warning:</b> in most circumstances it is better to set a per-cache {@linkplain
       * #maximumSize(long) maximum size} instead of using soft references. You should only use this
       * method if you are well familiar with the practical consequences of soft references.
       *
       * <p><b>Note:</b> when this method is used, the resulting cache will use identity ({@code ==})
       * comparison to determine equality of values.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 08 18:55:33 UTC 2025
    - 51.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

        return warmUp(cache, WARMUP_MIN, WARMUP_MAX);
      }
    
      /**
       * Returns the entries that were added to the map, so they won't fall out of a map with weak or
       * soft references until the caller drops the reference to the returned entries.
       */
      private List<Entry<Object, Object>> warmUp(
          LoadingCache<Object, Object> cache, int minimum, int maximum) {
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

        return warmUp(cache, WARMUP_MIN, WARMUP_MAX);
      }
    
      /**
       * Returns the entries that were added to the map, so they won't fall out of a map with weak or
       * soft references until the caller drops the reference to the returned entries.
       */
      private List<Entry<Object, Object>> warmUp(
          LoadingCache<Object, Object> cache, int minimum, int maximum) {
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/CacheBuilder.java

       * demand.
       *
       * <p><b>Warning:</b> in most circumstances it is better to set a per-cache {@linkplain
       * #maximumSize(long) maximum size} instead of using soft references. You should only use this
       * method if you are well familiar with the practical consequences of soft references.
       *
       * <p><b>Note:</b> when this method is used, the resulting cache will use identity ({@code ==})
       * comparison to determine equality of values.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 08 18:55:33 UTC 2025
    - 51.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        return unmodifiableCollectionSubclass(createCollection());
      }
    
      /**
       * Creates the collection of values for a single key.
       *
       * <p>Collections with weak, soft, or phantom references are not supported. Each call to {@code
       * createCollection} should create a new instance.
       *
       * <p>The returned collection class determines whether duplicate key-value pairs are allowed.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 48.4K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

            Request
              .Builder()
              .url(server.url("/"))
              .build(),
          )
        val response = call.execute()
        if (expectedProtocol == Protocol.HTTP_2) {
          // soft failure since client may not support depending on Platform
          assumeThat(response, matchesProtocol(Protocol.HTTP_2))
        }
        assertThat(response.protocol).isEqualTo(expectedProtocol)
        assertFailsWith<IOException> {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

      }
    
      public void testSetSoftValues() {
        LocalCache<Object, Object> map = makeLocalCache(createCacheBuilder().softValues());
        checkStrength(map, Strength.STRONG, Strength.SOFT);
        assertThat(map.entryFactory).isEqualTo(EntryFactory.STRONG);
      }
    
      private static void checkStrength(
          LocalCache<Object, Object> map, Strength keyStrength, Strength valueStrength) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 115.9K bytes
    - Viewed (0)
Back to top