- Sort Score
- Result 10 results
- Languages All
Results 11 - 17 of 17 for keyEquivalence (0.11 sec)
-
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) -
android/guava/src/com/google/common/collect/Interners.java
@VisibleForTesting final MapMakerInternalMap<E, Dummy, ?, ?> map; private InternerImpl(MapMaker mapMaker) { this.map = MapMakerInternalMap.createWithDummyValues(mapMaker.keyEquivalence(Equivalence.equals())); } @Override public E intern(E sample) { while (true) { // trying to read the canonical...
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Mar 13 14:30:51 UTC 2023 - 5.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/Interners.java
@VisibleForTesting final MapMakerInternalMap<E, Dummy, ?, ?> map; private InternerImpl(MapMaker mapMaker) { this.map = MapMakerInternalMap.createWithDummyValues(mapMaker.keyEquivalence(Equivalence.equals())); } @Override public E intern(E sample) { while (true) { // trying to read the canonical...
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Mar 13 14:30:51 UTC 2023 - 5.9K bytes - Viewed (0) -
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) -
android/guava-tests/test/com/google/common/cache/LocalCacheTest.java
protected int doHash(Object t) { return 0; } }; LocalCache<Object, Object> map = makeLocalCache(createCacheBuilder().keyEquivalence(testEquivalence)); assertSame(testEquivalence, map.keyEquivalence); assertSame(map.valueStrength.defaultEquivalence(), map.valueEquivalence); } public void testSetValueEquivalence() { Equivalence<Object> testEquivalence =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 110.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/LocalCacheTest.java
protected int doHash(Object t) { return 0; } }; LocalCache<Object, Object> map = makeLocalCache(createCacheBuilder().keyEquivalence(testEquivalence)); assertSame(testEquivalence, map.keyEquivalence); assertSame(map.valueStrength.defaultEquivalence(), map.valueEquivalence); } public void testSetValueEquivalence() { Equivalence<Object> testEquivalence =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 112.3K bytes - Viewed (0) -
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)