Home
last modified time | relevance | path

Searched refs:keyEquivalence (Results 1 – 12 of 12) sorted by relevance

/external/guava/guava/src/com/google/common/cache/
DCacheBuilder.java232 Equivalence<Object> keyEquivalence; field in CacheBuilder
292 CacheBuilder<K, V> keyEquivalence(Equivalence<Object> equivalence) { in keyEquivalence() method in CacheBuilder
293 checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence); in keyEquivalence()
294 keyEquivalence = checkNotNull(equivalence); in keyEquivalence()
299 return MoreObjects.firstNonNull(keyEquivalence, getKeyStrength().defaultEquivalence()); in getKeyEquivalence()
859 if (keyEquivalence != null) { in toString()
DLocalCache.java178 final Equivalence<Object> keyEquivalence; field in LocalCache
242 keyEquivalence = builder.getKeyEquivalence(); in LocalCache()
1839 int h = keyEquivalence.hash(key); in hash()
2232 && map.keyEquivalence.equivalent(key, entryKey)) { in lockedGetOrLoad()
2421 && map.keyEquivalence.equivalent(key, entryKey)) { in insertLoadingValueReference()
2711 if (map.keyEquivalence.equivalent(key, entryKey)) { in getEntry()
2844 && map.keyEquivalence.equivalent(key, entryKey)) { in put()
2980 && map.keyEquivalence.equivalent(key, entryKey)) { in replace()
3033 && map.keyEquivalence.equivalent(key, entryKey)) { in replace()
3080 && map.keyEquivalence.equivalent(key, entryKey)) { in remove()
[all …]
/external/guava/guava/src/com/google/common/collect/
DMapMaker.java128 Equivalence<Object> keyEquivalence; field in MapMaker
147 MapMaker keyEquivalence(Equivalence<Object> equivalence) { in keyEquivalence() method in MapMaker
148 checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence); in keyEquivalence()
149 keyEquivalence = checkNotNull(equivalence); in keyEquivalence()
155 return MoreObjects.firstNonNull(keyEquivalence, getKeyStrength().defaultEquivalence()); in getKeyEquivalence()
618 if (keyEquivalence != null) { in toString()
DComputingConcurrentHashMap.java107 && map.keyEquivalence.equivalent(key, entryKey)) { in getOrCompute()
382 return new ComputingSerializationProxy<K, V>(keyStrength, valueStrength, keyEquivalence, in writeReplace()
392 Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence, in ComputingSerializationProxy() argument
396 super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos, in ComputingSerializationProxy()
DMapMakerInternalMap.java156 final Equivalence<Object> keyEquivalence; field in MapMakerInternalMap
201 keyEquivalence = builder.getKeyEquivalence(); in MapMakerInternalMap()
1851 int h = keyEquivalence.hash(key); in hash()
2413 if (map.keyEquivalence.equivalent(key, entryKey)) { in getEntry()
2516 && map.keyEquivalence.equivalent(key, entryKey)) { in put()
2649 && map.keyEquivalence.equivalent(key, entryKey)) { in replace()
2700 && map.keyEquivalence.equivalent(key, entryKey)) { in replace()
2745 && map.keyEquivalence.equivalent(key, entryKey)) { in remove()
2788 && map.keyEquivalence.equivalent(key, entryKey)) { in remove()
2933 && map.keyEquivalence.equivalent(key, entryKey)) { in reclaimValue()
[all …]
DGenericMapMaker.java70 abstract GenericMapMaker<K0, V0> keyEquivalence(Equivalence<Object> equivalence); in keyEquivalence() method in GenericMapMaker
DInterners.java70 .keyEquivalence(Equivalence.equals())
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DCacheBuilder.java226 Equivalence<Object> keyEquivalence; field in CacheBuilder
246 return MoreObjects.firstNonNull(keyEquivalence, getKeyStrength().defaultEquivalence()); in getKeyEquivalence()
614 if (keyEquivalence != null) { in toString()
/external/guava/guava-tests/test/com/google/common/collect/
DConcurrentHashMultisetTest.java376 .keyEquivalence(Equivalence.identity());
415 .keyEquivalence(Equivalence.equals());
461 .keyEquivalence(Equivalence.identity());
DMapMakerInternalMapTest.java81 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testDefaults()
120 makeMap(createMapMaker().keyEquivalence(testEquivalence)); in testSetKeyEquivalence()
121 assertSame(testEquivalence, map.keyEquivalence); in testSetKeyEquivalence()
246 assertSame(keyStrength.defaultEquivalence(), map.keyEquivalence); in checkStrength()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderSpecTest.java555 assertEquals("keyEquivalence", a.keyEquivalence, b.keyEquivalence); in assertCacheBuilderEquivalence()
DLocalCacheTest.java156 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testDefaults()
197 makeLocalCache(createCacheBuilder().keyEquivalence(testEquivalence)); in testSetKeyEquivalence()
198 assertSame(testEquivalence, map.keyEquivalence); in testSetKeyEquivalence()
218 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testSetValueEquivalence()
369 assertSame(keyStrength.defaultEquivalence(), map.keyEquivalence); in checkStrength()