Home
last modified time | relevance | path

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

/external/guava/guava/src/com/google/common/cache/
DCacheBuilder.java216 Equivalence<Object> keyEquivalence; field in CacheBuilder
249 CacheBuilder<K, V> keyEquivalence(Equivalence<Object> equivalence) { in keyEquivalence() method in CacheBuilder
250 checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence); in keyEquivalence()
251 keyEquivalence = checkNotNull(equivalence); in keyEquivalence()
256 return firstNonNull(keyEquivalence, getKeyStrength().defaultEquivalence()); in getKeyEquivalence()
810 if (keyEquivalence != null) { in toString()
DLocalCache.java176 final Equivalence<Object> keyEquivalence; field in LocalCache
239 keyEquivalence = builder.getKeyEquivalence(); in LocalCache()
1888 int h = keyEquivalence.hash(key); in hash()
2263 && map.keyEquivalence.equivalent(key, entryKey)) { in lockedGetOrLoad()
2452 && map.keyEquivalence.equivalent(key, entryKey)) { in insertLoadingValueReference()
2738 if (map.keyEquivalence.equivalent(key, entryKey)) { in getEntry()
2871 && map.keyEquivalence.equivalent(key, entryKey)) { in put()
3007 && map.keyEquivalence.equivalent(key, entryKey)) { in replace()
3060 && map.keyEquivalence.equivalent(key, entryKey)) { in replace()
3107 && map.keyEquivalence.equivalent(key, entryKey)) { in remove()
[all …]
/external/guava/guava/src/com/google/common/collect/
DMapMaker.java135 Equivalence<Object> keyEquivalence; field in MapMaker
159 MapMaker keyEquivalence(Equivalence<Object> equivalence) { in keyEquivalence() method in MapMaker
160 checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence); in keyEquivalence()
161 keyEquivalence = checkNotNull(equivalence); in keyEquivalence()
167 return firstNonNull(keyEquivalence, getKeyStrength().defaultEquivalence()); in getKeyEquivalence()
701 if (keyEquivalence != null) { in toString()
DComputingConcurrentHashMap.java109 && map.keyEquivalence.equivalent(key, entryKey)) { in getOrCompute()
413 return new ComputingSerializationProxy<K, V>(keyStrength, valueStrength, keyEquivalence, in writeReplace()
423 Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence, in ComputingSerializationProxy() argument
427 super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos, in ComputingSerializationProxy()
DMapMakerInternalMap.java157 final Equivalence<Object> keyEquivalence; field in MapMakerInternalMap
202 keyEquivalence = builder.getKeyEquivalence(); in MapMakerInternalMap()
1901 int h = keyEquivalence.hash(key); in hash()
2448 if (map.keyEquivalence.equivalent(key, entryKey)) { in getEntry()
2551 && map.keyEquivalence.equivalent(key, entryKey)) { in put()
2684 && map.keyEquivalence.equivalent(key, entryKey)) { in replace()
2735 && map.keyEquivalence.equivalent(key, entryKey)) { in replace()
2780 && map.keyEquivalence.equivalent(key, entryKey)) { in remove()
2823 && map.keyEquivalence.equivalent(key, entryKey)) { in remove()
2967 && map.keyEquivalence.equivalent(key, entryKey)) { in reclaimValue()
[all …]
DInterners.java61 .keyEquivalence(Equivalences.equals())
DGenericMapMaker.java62 abstract GenericMapMaker<K0, V0> keyEquivalence(Equivalence<Object> equivalence); in keyEquivalence() method in GenericMapMaker
/external/guava/guava-tests/test/com/google/common/collect/
DConcurrentHashMultisetTest.java360 .keyEquivalence(Equivalences.identity()); in testIdentityKeyEquality()
403 .keyEquivalence(Equivalences.equals()); in testLogicalKeyEquality()
449 .keyEquivalence(Equivalences.identity()); in testSerializationWithMapMaker_preservesIdentityKeyEquivalence()
DMapMakerInternalMapTest.java81 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testDefaults()
120 makeMap(createMapMaker().keyEquivalence(testEquivalence)); in testSetKeyEquivalence()
121 assertSame(testEquivalence, map.keyEquivalence); in testSetKeyEquivalence()
141 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testSetValueEquivalence()
272 assertSame(keyStrength.defaultEquivalence(), map.keyEquivalence); in checkStrength()
/external/guava/guava-tests/test/com/google/common/cache/
DLocalCacheTest.java126 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testDefaults()
167 makeLocalCache(createCacheBuilder().keyEquivalence(testEquivalence)); in testSetKeyEquivalence()
168 assertSame(testEquivalence, map.keyEquivalence); in testSetKeyEquivalence()
188 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testSetValueEquivalence()
335 assertSame(keyStrength.defaultEquivalence(), map.keyEquivalence); in checkStrength()