Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for keyStrength (0.08 sec)

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

        assertEquals("refreshNanos", a.refreshNanos, b.refreshNanos);
        assertEquals("keyEquivalence", a.keyEquivalence, b.keyEquivalence);
        assertEquals("keyStrength", a.keyStrength, b.keyStrength);
        assertEquals("removalListener", a.removalListener, b.removalListener);
        assertEquals("weigher", a.weigher, b.weigher);
        assertEquals("valueEquivalence", a.valueEquivalence, b.valueEquivalence);
    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

        assertEquals("refreshNanos", a.refreshNanos, b.refreshNanos);
        assertEquals("keyEquivalence", a.keyEquivalence, b.keyEquivalence);
        assertEquals("keyStrength", a.keyStrength, b.keyStrength);
        assertEquals("removalListener", a.removalListener, b.removalListener);
        assertEquals("weigher", a.weigher, b.weigher);
        assertEquals("valueEquivalence", a.valueEquivalence, b.valueEquivalence);
    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/InternersTest.java

            Interners.newBuilder().strong().concurrencyLevel(concurrencyLevel).build();
        InternerImpl<Object> internerImpl = (InternerImpl<Object>) interner;
        assertEquals(Strength.STRONG, internerImpl.map.keyStrength());
      }
    
      public void testWeak_simplistic() {
        String canonical = "a";
        String not = new String("a");
    
        Interner<String> pool = Interners.newWeakInterner();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

      }
    
      private static void checkStrength(
          LocalCache<Object, Object> map, Strength keyStrength, Strength valueStrength) {
        assertSame(keyStrength, map.keyStrength);
        assertSame(valueStrength, map.valueStrength);
        assertSame(keyStrength.defaultEquivalence(), map.keyEquivalence);
        assertSame(valueStrength.defaultEquivalence(), map.valueEquivalence);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/LocalCacheTest.java

      }
    
      private static void checkStrength(
          LocalCache<Object, Object> map, Strength keyStrength, Strength valueStrength) {
        assertSame(keyStrength, map.keyStrength);
        assertSame(valueStrength, map.valueStrength);
        assertSame(keyStrength.defaultEquivalence(), map.keyEquivalence);
        assertSame(valueStrength.defaultEquivalence(), map.valueEquivalence);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

      public void testIdentityKeyEquality_weakKeys() {
        testIdentityKeyEquality(WEAK);
      }
    
      private void testIdentityKeyEquality(MapMakerInternalMap.Strength keyStrength) {
    
        ConcurrentMap<String, AtomicInteger> map =
            new MapMaker().setKeyStrength(keyStrength).keyEquivalence(Equivalence.identity()).makeMap();
    
        ConcurrentHashMultiset<String> multiset = ConcurrentHashMultiset.create(map);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/InternersTest.java

            Interners.newBuilder().strong().concurrencyLevel(concurrencyLevel).build();
        InternerImpl<Object> internerImpl = (InternerImpl<Object>) interner;
        assertEquals(Strength.STRONG, internerImpl.map.keyStrength());
      }
    
      public void testWeak_simplistic() {
        String canonical = "a";
        String not = new String("a");
    
        Interner<String> pool = Interners.newWeakInterner();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/MapMakerInternalMap.java

          }
    
          for (Segment<?, ?, ?, ?> segment : map.segments) {
            segment.runCleanup();
          }
        }
      }
    
      @VisibleForTesting
      Strength keyStrength() {
        return entryHelper.keyStrength();
      }
    
      @VisibleForTesting
      Strength valueStrength() {
        return entryHelper.valueStrength();
      }
    
      @VisibleForTesting
      Equivalence<Object> valueEquivalence() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

      public void testIdentityKeyEquality_weakKeys() {
        testIdentityKeyEquality(WEAK);
      }
    
      private void testIdentityKeyEquality(MapMakerInternalMap.Strength keyStrength) {
    
        ConcurrentMap<String, AtomicInteger> map =
            new MapMaker().setKeyStrength(keyStrength).keyEquivalence(Equivalence.identity()).makeMap();
    
        ConcurrentHashMultiset<String> multiset = ConcurrentHashMultiset.create(map);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

          }
    
          for (Segment<?, ?, ?, ?> segment : map.segments) {
            segment.runCleanup();
          }
        }
      }
    
      @VisibleForTesting
      Strength keyStrength() {
        return entryHelper.keyStrength();
      }
    
      @VisibleForTesting
      Strength valueStrength() {
        return entryHelper.valueStrength();
      }
    
      @VisibleForTesting
      Equivalence<Object> valueEquivalence() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
Back to top