Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for weakValues (0.42 sec)

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

        assertThrows(IllegalArgumentException.class, () -> parse("softValues, weakValues"));
    
        assertThrows(IllegalArgumentException.class, () -> parse("weakValues, softValues"));
    
        assertThrows(IllegalArgumentException.class, () -> parse("weakValues, weakValues"));
      }
    
      public void testParse_writeExpirationDays() {
        CacheBuilderSpec spec = parse("expireAfterWrite=10d");
        assertNull(spec.initialCapacity);
    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

        assertThrows(IllegalArgumentException.class, () -> parse("softValues, weakValues"));
    
        assertThrows(IllegalArgumentException.class, () -> parse("weakValues, softValues"));
    
        assertThrows(IllegalArgumentException.class, () -> parse("weakValues, weakValues"));
      }
    
      public void testParse_writeExpirationDays() {
        CacheBuilderSpec spec = parse("expireAfterWrite=10d");
        assertNull(spec.initialCapacity);
    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. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        return ImmutableList.of(createMapMaker().weakKeys(), createMapMaker().weakKeys().weakValues());
      }
    
      private static Iterable<MapMaker> allWeakValueStrengthMakers() {
        return ImmutableList.of(
            createMapMaker().weakValues(), createMapMaker().weakKeys().weakValues());
      }
    
      public void testNullParameters() throws Exception {
        NullPointerTester tester = new NullPointerTester();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        return ImmutableList.of(createMapMaker().weakKeys(), createMapMaker().weakKeys().weakValues());
      }
    
      private static Iterable<MapMaker> allWeakValueStrengthMakers() {
        return ImmutableList.of(
            createMapMaker().weakValues(), createMapMaker().weakKeys().weakValues());
      }
    
      public void testNullParameters() throws Exception {
        NullPointerTester tester = new NullPointerTester();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        assertThrows(IllegalStateException.class, () -> builder1.weakKeys());
      }
    
      @GwtIncompatible // weakValues
      public void testValueStrengthSetTwice() {
        CacheBuilder<Object, Object> builder1 = CacheBuilder.newBuilder().weakValues();
        assertThrows(IllegalStateException.class, () -> builder1.weakValues());
        assertThrows(IllegalStateException.class, () -> builder1.softValues());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

                } else {
                  return "0";
                }
              }
            };
    
        LoadingCache<Integer, String> recursiveCache =
            CacheBuilder.newBuilder().weakKeys().weakValues().build(recursiveLoader);
        cacheRef.set(recursiveCache);
        assertEquals("3, 2, 1, 0", recursiveCache.getUnchecked(3));
    
        recursiveLoader =
            new CacheLoader<Integer, String>() {
              @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

                } else {
                  return "0";
                }
              }
            };
    
        LoadingCache<Integer, String> recursiveCache =
            CacheBuilder.newBuilder().weakKeys().weakValues().build(recursiveLoader);
        cacheRef.set(recursiveCache);
        assertEquals("3, 2, 1, 0", recursiveCache.getUnchecked(3));
    
        recursiveLoader =
            new CacheLoader<Integer, String>() {
              @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          }
        },
        MapMakerStrongKeysWeakValues {
          @Override
          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
            ConcurrentMap<K, V> newMap = new MapMaker().weakValues().makeMap();
            checkState(newMap instanceof MapMakerInternalMap);
            newMap.putAll(map);
            return newMap;
          }
        },
        MapMakerWeakKeysStrongValues {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          }
        },
        MapMakerStrongKeysWeakValues {
          @Override
          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
            ConcurrentMap<K, V> newMap = new MapMaker().weakValues().makeMap();
            checkState(newMap instanceof MapMakerInternalMap);
            newMap.putAll(map);
            return newMap;
          }
        },
        MapMakerWeakKeysStrongValues {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/Striped.java

        LargeLazyStriped(int stripes, Supplier<L> supplier) {
          super(stripes);
          this.size = (mask == ALL_SET) ? Integer.MAX_VALUE : mask + 1;
          this.supplier = supplier;
          this.locks = new MapMaker().weakValues().makeMap();
        }
    
        @Override
        public L getAt(int index) {
          if (size != Integer.MAX_VALUE) {
            Preconditions.checkElementIndex(index, size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top