Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for softValues (0.16 sec)

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

      }
    
      public void testParse_repeatedValueStrength() {
        assertThrows(IllegalArgumentException.class, () -> parse("softValues, softValues"));
    
        assertThrows(IllegalArgumentException.class, () -> parse("softValues, weakValues"));
    
        assertThrows(IllegalArgumentException.class, () -> parse("weakValues, softValues"));
    
        assertThrows(IllegalArgumentException.class, () -> parse("weakValues, weakValues"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

      }
    
      public void testParse_repeatedValueStrength() {
        assertThrows(IllegalArgumentException.class, () -> parse("softValues, softValues"));
    
        assertThrows(IllegalArgumentException.class, () -> parse("softValues, weakValues"));
    
        assertThrows(IllegalArgumentException.class, () -> parse("weakValues, softValues"));
    
        assertThrows(IllegalArgumentException.class, () -> parse("weakValues, weakValues"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/RemovalCause.java

      },
    
      /**
       * The entry was removed automatically because its key or value was garbage-collected. This can
       * occur when using {@link CacheBuilder#weakKeys}, {@link CacheBuilder#weakValues}, or {@link
       * CacheBuilder#softValues}.
       */
      COLLECTED {
        @Override
        boolean wasEvicted() {
          return true;
        }
      },
    
      /**
       * The entry's expiration timestamp has passed. This can occur when using {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 18:00:07 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/CacheBuilder.java

     * expireAfterWrite}, {@link #expireAfterAccess expireAfterAccess}, {@link #weakKeys weakKeys},
     * {@link #weakValues weakValues}, or {@link #softValues softValues} are requested.
     *
     * <p>If {@link #maximumSize(long) maximumSize} or {@link #maximumWeight(long) maximumWeight} is
     * requested entries may be evicted on each cache modification.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 52K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/CacheBuilder.java

     * expireAfterWrite}, {@link #expireAfterAccess expireAfterAccess}, {@link #weakKeys weakKeys},
     * {@link #weakValues weakValues}, or {@link #softValues softValues} are requested.
     *
     * <p>If {@link #maximumSize(long) maximumSize} or {@link #maximumWeight(long) maximumWeight} is
     * requested entries may be evicted on each cache modification.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/RemovalCause.java

      },
    
      /**
       * The entry was removed automatically because its key or value was garbage-collected. This can
       * occur when using {@link CacheBuilder#weakKeys}, {@link CacheBuilder#weakValues}, or {@link
       * CacheBuilder#softValues}.
       */
      COLLECTED {
        @Override
        boolean wasEvicted() {
          return true;
        }
      },
    
      /**
       * The entry's expiration timestamp has passed. This can occur when using {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 18:00:07 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

                .createTestSuite());
        suite.addTest(
            ConcurrentMapTestSuiteBuilder.using(
                    new TestStringCacheGenerator(createCacheBuilder().softValues()))
                .named("LocalCache with softValues") // values are string literals and won't be GC'd
                .withFeatures(
                    CollectionSize.ANY,
                    MapFeature.GENERAL_PURPOSE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/LocalCacheTest.java

                .createTestSuite());
        suite.addTest(
            ConcurrentMapTestSuiteBuilder.using(
                    new TestStringCacheGenerator(createCacheBuilder().softValues()))
                .named("LocalCache with softValues") // values are string literals and won't be GC'd
                .withFeatures(
                    CollectionSize.ANY,
                    MapFeature.GENERAL_PURPOSE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        assertThrows(IllegalStateException.class, () -> builder1.weakValues());
        assertThrows(IllegalStateException.class, () -> builder1.softValues());
    
        CacheBuilder<Object, Object> builder2 = CacheBuilder.newBuilder().softValues();
        assertThrows(IllegalStateException.class, () -> builder2.softValues());
        assertThrows(IllegalStateException.class, () -> builder2.weakValues());
      }
    
      @GwtIncompatible // Duration
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 24.9K bytes
    - Viewed (0)
Back to top