Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for keyEquivalence (0.11 sec)

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

        assertEquals("maximumWeight", a.maximumWeight, b.maximumWeight);
        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);
    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. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

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

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

        assertEquals("maximumWeight", a.maximumWeight, b.maximumWeight);
        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);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

              protected int doHash(Object t) {
                return 0;
              }
            };
    
        MapMakerInternalMap<Object, Object, ?, ?> map =
            makeMap(createMapMaker().keyEquivalence(testEquivalence));
        assertSame(testEquivalence, map.keyEquivalence);
        assertSame(map.valueStrength().defaultEquivalence(), map.valueEquivalence());
      }
    
      public void testSetConcurrencyLevel() {
        // round up to the nearest power of two
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

              protected int doHash(Object t) {
                return 0;
              }
            };
    
        MapMakerInternalMap<Object, Object, ?, ?> map =
            makeMap(createMapMaker().keyEquivalence(testEquivalence));
        assertSame(testEquivalence, map.keyEquivalence);
        assertSame(map.valueStrength().defaultEquivalence(), map.valueEquivalence());
      }
    
      public void testSetConcurrencyLevel() {
        // round up to the nearest power of two
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
            // We use a "custom" equivalence to force MapMaker to make a MapMakerInternalMap.
            ConcurrentMap<K, V> newMap = new MapMaker().keyEquivalence(Equivalence.equals()).makeMap();
            checkState(newMap instanceof MapMakerInternalMap);
            newMap.putAll(map);
            return newMap;
          }
        },
        MapMakerStrongKeysWeakValues {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
            // We use a "custom" equivalence to force MapMaker to make a MapMakerInternalMap.
            ConcurrentMap<K, V> newMap = new MapMaker().keyEquivalence(Equivalence.equals()).makeMap();
            checkState(newMap instanceof MapMakerInternalMap);
            newMap.putAll(map);
            return newMap;
          }
        },
        MapMakerStrongKeysWeakValues {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top